summaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authoruvok cheetah2020-01-04 20:28:47 +0100
committeruvok cheetah2020-01-04 20:29:07 +0100
commit9041fb41190d907d41bf0d58652c25b3c3039710 (patch)
treee2e74c3888987069007bef4901567d67498c1336 /_layouts/post.html
parent823c463e7bac3e722afa753ec068c677b513c084 (diff)
Only display categories if there are any
Fix conditional in post layout
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html2
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>