From 9041fb41190d907d41bf0d58652c25b3c3039710 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sat, 4 Jan 2020 20:28:47 +0100 Subject: Only display categories if there are any Fix conditional in post layout --- _layouts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index 73c8d88..b3dac1e 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -14,7 +14,7 @@ layout: default {%- if page.author -%} • {%- endif -%} - {%- if page.categories -%} + {%- if page.categories.any? -%} , Kategorie: {{ page.categories | array_to_sentence_string }} {%- endif -%}

-- cgit v1.2.3