Merge pull request #26 from tshepang/assume

do not assume category exists
This commit is contained in:
Vincent Prouillet 2021-09-02 08:45:01 +02:00 committed by GitHub
commit 3359f859f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,8 @@
in <a href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">{{ category }}</a>
{% endif %}
{% if page.taxonomies.tags %}
and tagged
{% if page.taxonomies.categories %}and{% endif %}
tagged
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a>
{% if page.taxonomies.tags | length > 1 %}
@ -49,4 +50,3 @@
</article>
{% endblock content %}