diff options
author | uvok cheetah | 2020-01-04 20:28:47 +0100 |
---|---|---|
committer | uvok cheetah | 2020-01-04 20:29:07 +0100 |
commit | 9041fb41190d907d41bf0d58652c25b3c3039710 (patch) | |
tree | e2e74c3888987069007bef4901567d67498c1336 /_layouts | |
parent | 823c463e7bac3e722afa753ec068c677b513c084 (diff) |
Only display categories if there are any
Fix conditional in post layout
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 -%} • <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 -%} + {%- if page.categories.any? -%} <span>, Kategorie: {{ page.categories | array_to_sentence_string }}</span> {%- endif -%} </p> |