Add perex support
This commit is contained in:
parent
0157b049b0
commit
21154d1c59
1 changed files with 1 additions and 4 deletions
|
@ -10,10 +10,7 @@ layout: default
|
||||||
<h1 class="catalogue-title">{{ post.title }}</h1>
|
<h1 class="catalogue-title">{{ post.title }}</h1>
|
||||||
<div class="catalogue-line"></div>
|
<div class="catalogue-line"></div>
|
||||||
|
|
||||||
<p>
|
<p>{% if post.perex -%}{{ post.perex }}{% else -%}{{ post.content | strip_html | truncatewords: 30 }}{% endif -%}</p>
|
||||||
<!-- sadly this template is not compatible with post.excerpt -->
|
|
||||||
{{ post.content | strip_html | truncatewords: 30 }}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue