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> <h2>{{ title }}</h2>
<time>{{ date | dateFilter }}</time> <time>{{ date | dateFilter }}</time>
{{ content | safe }} {{ content | safe }}
{% for tag in tags %} {% set tagUrl %}/tags/{{ tag | slug }}/{% endset %} <div class="tags--container">
<a href="{{ tagUrl | url }}">{{ tag }}</a> {% for tag in tags %}
{% endfor %} {% set tagUrl %}/tags/{{ tag | slug }}/{% endset %}
</article> <div class="tag">
<a href="{{ tagUrl | url }}">{{ tag }}</a>
</div>
{% endfor %}
</div>
</article>