mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-12-31 16:37:48 +01:00
Merge pull request #53 from AntoniosBarotsis/show-description
Added the option to only show the description (continuation)
This commit is contained in:
commit
39d13a9a6a
4 changed files with 23 additions and 4 deletions
|
|
@ -1,5 +1,9 @@
|
|||
{% macro content(page, summary) %}
|
||||
{%- if summary and page.summary %}
|
||||
{% macro content(page, summary, show_only_description) %}
|
||||
{%- if show_only_description %}
|
||||
<div class="post-content">
|
||||
{{ page.description | safe }}
|
||||
</div>
|
||||
{% elif summary and page.summary %}
|
||||
<div class="post-content">
|
||||
{{ page.summary | safe }}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue