diff --git a/README.rst b/README.rst index 7a6abbf..2a1673e 100644 --- a/README.rst +++ b/README.rst @@ -182,6 +182,12 @@ Archive Title - ``ARCHIVE_TITLE``: Custom page title for ``archives.html``. Default is ``"Blog Archive"``. +Full Content +------------ + +- ``INDEX_FULL_CONTENT``: Display full post content on the index page. Default + is ``False``. + Contribute ---------- diff --git a/templates/_includes/article.html b/templates/_includes/article.html index 42b43ea..89c8ead 100644 --- a/templates/_includes/article.html +++ b/templates/_includes/article.html @@ -14,12 +14,16 @@

{{ article.title|striptags }}

{% if index %} -
{{ article.summary }}
- {% if article.summary != article.content %} - - {% endif %} + {% if INDEX_FULL_CONTENT %} +
{{ article.content }}
+ {% else %} +
{{ article.summary }}
+ {% if article.summary != article.content %} + + {% endif %} + {% endif %} {% else %} -
{{ article.content }}
+
{{ article.content }}
{% endif %}