Style tags table

This commit is contained in:
Oliver Davies 2018-01-30 22:41:47 +00:00
parent d9b6d4fbb8
commit 531a7622ee
2 changed files with 33 additions and 12 deletions

View file

@ -1,9 +1,13 @@
{% if page.tags %}
<div class="tags">
{% for tag in page.tags %}
<a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}" class="blue">
{{- tag -}}
</a>
{% endfor %}
<div>
<p>
Tags:
{% for tag in page.tags|sort %}
<a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}" class="blue">
{{- tag -}}
</a>
{%- if not loop.last %},{% endif %}
{% endfor %}
</p>
</div>
{% endif %}