From 39640e637e8da05f32b9c25f00abd57319a53625 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Thu, 9 Jan 2020 20:46:51 +0100 Subject: Link category to list pages --- _layouts/post.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '_layouts') 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 • {%- endif -%} {%- if page.categories.size != 0 -%} - , Kategorie: {{ page.categories | array_to_sentence_string }} + • Kategorie: {% for cat in page.categories %} + {%- assign catlink = "/category/" | append: cat | append: "/" -%} + {{ cat }} {%- if forloop.last != true -%}, {%- endif -%} + {%- endfor %} + {%- endif -%}

-- cgit v1.2.3