diff options
author | uvok cheetah | 2020-01-09 20:46:51 +0100 |
---|---|---|
committer | uvok cheetah | 2020-01-09 20:46:51 +0100 |
commit | 39640e637e8da05f32b9c25f00abd57319a53625 (patch) | |
tree | 2f0bd0e4439395100dedc3b9cecd3b1a404e8e9f | |
parent | e2af0cb833b78f9db86562e69b7d543e2be7854f (diff) |
Link category to list pages
-rw-r--r-- | _layouts/post.html | 6 |
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> |