diff --git a/static/src/scss/_content.scss b/static/src/scss/_content.scss index 1f1930a..e8de723 100644 --- a/static/src/scss/_content.scss +++ b/static/src/scss/_content.scss @@ -4,11 +4,27 @@ section.content { } .content-details { - span + span { + & > span + span { margin-left: 0.5rem; } i { margin-right: 5px; } + + .tags { + display: inline-flex; + margin-bottom: 0; + + .tag { + background-color: unset; + font-size: inherit; + margin-bottom: 0; + padding: 0; + + & &:not(:last-child) { + margin-right: 0.2rem !important; + } + } + } } diff --git a/website/common/templates/common/content-details.html b/website/common/templates/common/content-details.html index 1fa53f3..0d75fef 100644 --- a/website/common/templates/common/content-details.html +++ b/website/common/templates/common/content-details.html @@ -6,6 +6,15 @@ {{ page.reading_time }} minutes {% endif %} -{% if page.tags.all %} - {% for tag in page.tags.all %}#{{ tag.slug }}{% endfor %} -{% endif %} +{% spaceless %} + {% if page.tags.all %} + + + + {% for tag in page.tags.all %} + #{{ tag.slug }} + {% endfor%} + + + {% endif %} +{% endspaceless %}