From af23b076a185b35580bcc3e4c289cc55dfb5b9cd Mon Sep 17 00:00:00 2001 From: "Mr. Senko" Date: Sun, 17 Jan 2016 16:40:56 +0200 Subject: [PATCH] New setting: SHOW_FULL_ARTICLE when set to True will show the full article content on index.html instead of truncated summary. --- README.md | 5 +++++ templates/index.html | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f43c21c..a7df3fa 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,11 @@ Accept many analytics: - Gauges: ``GAUGES`` - 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 To customize header cover to articles, insert the metadata ``header_cover``: diff --git a/templates/index.html b/templates/index.html index 10b1007..a3cfe79 100755 --- a/templates/index.html +++ b/templates/index.html @@ -32,7 +32,9 @@ {{ article.title }} - {% if article.summary %} + {% if SHOW_FULL_ARTICLE %} + {{ article.content }} + {% elif article.summary %} {{ article.summary|truncate(140) }} {% endif %}

Posted by