Skip to content

Commit

Permalink
Merge pull request #26 from tshepang/assume
Browse files Browse the repository at this point in the history
do not assume category exists
  • Loading branch information
Keats committed Sep 2, 2021
2 parents 33def45 + d4ff89e commit 3359f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ <h1 itemprop="headline">{{ page.title }}</h1>
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 %}
Expand All @@ -49,4 +50,3 @@ <h1 itemprop="headline">{{ page.title }}</h1>
</article>

{% endblock content %}

0 comments on commit 3359f85

Please sign in to comment.