New setting: SHOW_FULL_ARTICLE
when set to True will show the full article content on index.html instead of truncated summary.
This commit is contained in:
parent
52f805521e
commit
af23b076a1
@ -70,6 +70,11 @@ Accept many analytics:
|
|||||||
- Gauges: ``GAUGES``
|
- Gauges: ``GAUGES``
|
||||||
- Piwik: ``PIWIK_URL`` and ``PIWIK_SITE_ID``.
|
- Piwik: ``PIWIK_URL`` and ``PIWIK_SITE_ID``.
|
||||||
|
|
||||||
|
### Other configuration
|
||||||
|
|
||||||
|
- Set ``SHOW_FULL_ARTICLE`` to True to show full article content on index.html
|
||||||
|
instead of summary;
|
||||||
|
|
||||||
### Articles
|
### Articles
|
||||||
|
|
||||||
To customize header cover to articles, insert the metadata ``header_cover``:
|
To customize header cover to articles, insert the metadata ``header_cover``:
|
||||||
|
@ -32,7 +32,9 @@
|
|||||||
{{ article.title }}
|
{{ article.title }}
|
||||||
</h2>
|
</h2>
|
||||||
</a>
|
</a>
|
||||||
{% if article.summary %}
|
{% if SHOW_FULL_ARTICLE %}
|
||||||
|
{{ article.content }}
|
||||||
|
{% elif article.summary %}
|
||||||
{{ article.summary|truncate(140) }}
|
{{ article.summary|truncate(140) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="post-meta">Posted by
|
<p class="post-meta">Posted by
|
||||||
|
Loading…
Reference in New Issue
Block a user