From 9906c3e1839833041a098bcbfd1fcb3de0aafabb Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 25 Sep 2019 00:39:20 +0900 Subject: [PATCH] blog: show abstract in listing, content on post --- content/u/blog/how-to-sneak-in-a-static-cms/contents.lr | 2 ++ templates/macros/blog.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/content/u/blog/how-to-sneak-in-a-static-cms/contents.lr b/content/u/blog/how-to-sneak-in-a-static-cms/contents.lr index ab190e2..8599f27 100644 --- a/content/u/blog/how-to-sneak-in-a-static-cms/contents.lr +++ b/content/u/blog/how-to-sneak-in-a-static-cms/contents.lr @@ -147,3 +147,5 @@ project](https://code.ungleich.ch/ungleich-public/dynamicweb/). If you want to join the discussion about this, I invite you to our open chat on [chat.ungleich.ch](https://chat.ungleich.ch). + +And next in this blog: how to use it ;-) diff --git a/templates/macros/blog.html b/templates/macros/blog.html index a3c5410..34bb6b7 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -15,6 +15,10 @@ {% endif %} on {{ post.pub_date }}

+ {% if from_index %} {{ post.abstract }} + {% else %} + {{ post.body }} + {% endif %} {% endmacro %}