Add perex support

This commit is contained in:
Michal Jirku 2021-04-19 17:03:06 +02:00
parent 0157b049b0
commit 21154d1c59
1 changed files with 1 additions and 4 deletions

View File

@ -10,10 +10,7 @@ layout: default
<h1 class="catalogue-title">{{ post.title }}</h1>
<div class="catalogue-line"></div>
<p>
<!-- sadly this template is not compatible with post.excerpt -->
{{ post.content | strip_html | truncatewords: 30 }}
</p>
<p>{% if post.perex -%}{{ post.perex }}{% else -%}{{ post.content | strip_html | truncatewords: 30 }}{% endif -%}</p>
</div>
</a>