added tags

Added tags container to post template
This commit is contained in:
Matt DeCamp 2021-12-07 15:50:59 -05:00
parent 193d830d87
commit 77bc084af0

View file

@ -9,7 +9,12 @@ layout: base
<h2>{{ title }}</h2>
<time>{{ date | dateFilter }}</time>
{{ content | safe }}
{% for tag in tags %} {% set tagUrl %}/tags/{{ tag | slug }}/{% endset %}
<a href="{{ tagUrl | url }}">{{ tag }}</a>
{% endfor %}
</article>
<div class="tags--container">
{% for tag in tags %}
{% set tagUrl %}/tags/{{ tag | slug }}/{% endset %}
<div class="tag">
<a href="{{ tagUrl | url }}">{{ tag }}</a>
</div>
{% endfor %}
</div>
</article>