summaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authoruvok cheetah2020-01-09 20:46:51 +0100
committeruvok cheetah2020-01-09 20:46:51 +0100
commit39640e637e8da05f32b9c25f00abd57319a53625 (patch)
tree2f0bd0e4439395100dedc3b9cecd3b1a404e8e9f /_layouts/post.html
parente2af0cb833b78f9db86562e69b7d543e2be7854f (diff)
Link category to list pages
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 4777b00..815e1e3 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -22,7 +22,11 @@ layout: default
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
{%- endif -%}
{%- if page.categories.size != 0 -%}
- <span>, Kategorie: {{ page.categories | array_to_sentence_string }}</span>
+ • <span>Kategorie: {% for cat in page.categories %}
+ {%- assign catlink = "/category/" | append: cat | append: "/" -%}
+ <a href="{{ catlink | relative_url }}">{{ cat }}</a> {%- if forloop.last != true -%}, {%- endif -%}
+ {%- endfor %}
+ </span>
{%- endif -%}
</p>
</header>