Move into partials
This commit is contained in:
parent
f6f9f16900
commit
de2818eee3
3 changed files with 17 additions and 18 deletions
9
source/_partials/pages/blog/teaser.html.twig
Normal file
9
source/_partials/pages/blog/teaser.html.twig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{% if post.summary %}
|
||||
{{ post.summary|markdown }}
|
||||
{% include 'pages/blog/read-more' %}
|
||||
{% elseif post.blocks.excerpt %}
|
||||
{{ post.blocks.excerpt|markdown }}
|
||||
{% include 'pages/blog/read-more' %}
|
||||
{% else %}
|
||||
{{ post.blocks.content|markdown }}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue