diff --git a/_includes/repo-card.html b/_includes/repo-card.html index 9fe0c93417..9e5a8ca70b 100644 --- a/_includes/repo-card.html +++ b/_includes/repo-card.html @@ -25,28 +25,30 @@

{{ repository.forks_count }} {% endif %} - {% if repository.license %} + + {% if repository.license %} +
{% octicon law width:16 class:"mr-1" %}{{ repository.license.name }} - {% endif %} -
-
- {% if repository.topics.size > 0 %} +
+ {% endif %} + {% if repository.topics.size > 0 %} +
{% for topic in repository.topics %} {{ topic }} {% endfor %}
- {% endif %} -
-
- {% if repository.homepage and repository.homepage != "" %} +
+ {% endif %} + {% if repository.homepage and repository.homepage != "" %} +
{% octicon link width:16 class:"mr-1" %}{{ repository.homepage }} - {% endif %} -
+ + {% endif %} diff --git a/assets/styles.scss b/assets/styles.scss index dde37dc2a7..a926bbcce6 100644 --- a/assets/styles.scss +++ b/assets/styles.scss @@ -56,4 +56,13 @@ .ellipsis-overflow { text-overflow: ellipsis; overflow: hidden; +} +.topic-tag { + display: inline-block; + padding: 0px 4px; + margin: 4px; + background-color: #0366d6; + color: #ffffff; + border-radius: 16px; + font-size: 12px; } \ No newline at end of file