From a237cd2777bd4ff518a9e2773702ce0f25c60bc5 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 2 Apr 2020 10:34:18 +0200 Subject: [PATCH] Truncate description of extra pages to 150 characters --- blog/templates/second-edition/extra.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/templates/second-edition/extra.html b/blog/templates/second-edition/extra.html index 105ff0be..041e2e1e 100644 --- a/blog/templates/second-edition/extra.html +++ b/blog/templates/second-edition/extra.html @@ -5,7 +5,7 @@ {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block description -%} -{{ page.summary | safe | striptags }} +{{ page.summary | safe | striptags | truncate(length=150) }} {%- endblock description %} {% block main %}