Skip to content

Commit

Permalink
Show all categories on blog.html
Browse files Browse the repository at this point in the history
  • Loading branch information
HarHarLinks authored Sep 16, 2024
1 parent 177e90d commit b5b6826
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ <h1><a href="{{ page.permalink }}" title="{{ page.title }}">{{ page.title }}</a>
{{ page.date | date(format="%d.%m.%Y %H:%M") }}
{% if page.taxonomies.category -%}
<a href="/category/{{ page.taxonomies.category | first | slugify }}">
{{ page.taxonomies.category | first }}
</a>
{% endif -%}
{% for category in page.taxonomies.category %}
<a href="/category/{{ category | slugify }}">
{{ category }}
</a>{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% for author in page.taxonomies.author %}
<a href="/author/{{ author | default(value=['unknown author']) | slugify }}">
Expand Down

0 comments on commit b5b6826

Please sign in to comment.