diff --git a/README.rst b/README.rst index 61a7aa4..568acd4 100644 --- a/README.rst +++ b/README.rst @@ -164,6 +164,13 @@ to enable in each respective channel, your post metadata needs to specify: - ``use_open_graph: true``: For Facebook specific meta tags. - ``use_twitter_card: true``: For Twitter specific meta tags. +Full Content +------------ + +Display full post content on the index page. + +- ``INDEX_FULL_CONTENT``: ``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 %}