From 6516b9f05f3402c8dd8c43c506b7737ebe1892d7 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Tue, 15 Aug 2017 19:43:05 +0200 Subject: [PATCH] Minor fixes --- templates/base.html | 2 +- templates/partials/article-excerpt.html | 5 ++++- templates/partials/article-short.html | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/base.html b/templates/base.html index 5fbf67e..e4243dc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -193,7 +193,7 @@

{{ FOOTER }}

-

Powered by Pelican.
Theme mg by Luca Chiricozzi.

+

Powered by Pelican.
Theme mg thanks to Luca Chiricozzi

diff --git a/templates/partials/article-excerpt.html b/templates/partials/article-excerpt.html index c81903d..1cb4ed5 100644 --- a/templates/partials/article-excerpt.html +++ b/templates/partials/article-excerpt.html @@ -1,6 +1,9 @@

{{ article.title|e }}

- + {% if not MG_DISABLE_SUMMARY %}

{{ article.summary|striptags|striptags }}

{% endif %}
{{ article.content }}
{% include "partials/inline-tags.html" %} diff --git a/templates/partials/article-short.html b/templates/partials/article-short.html index aae8036..5675c56 100644 --- a/templates/partials/article-short.html +++ b/templates/partials/article-short.html @@ -6,7 +6,10 @@ {% endif %}

{{ article.title|e }}

- +

{{ article.summary|striptags|striptags }}

{% if not MG_DISABLE_SUMMARY %}

{{ ' '.join(article.content.split(' ')[:75])|striptags|striptags }}...

{% endif %}