From 11ac4f23881e4f1421278a5cf72d56b3da728860 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 25 Sep 2019 00:36:58 +0900 Subject: [PATCH] add abstract to blog posts --- content/u/blog/how-to-sneak-in-a-static-cms/contents.lr | 8 ++++++++ models/blog-post.ini | 4 ++++ templates/macros/blog.html | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) 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 c3448b1..ab190e2 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 @@ -4,6 +4,14 @@ pub_date: 2019-09-24 --- author: Nico Schottelius --- +twitter_handle: NicoSchottelius +--- +abstract: +Let's see how easy it is [to sneak in a static +CMS](https://ungleich.ch/en-us/cms/blog/2019/09/24/sneaking-in-a-static-cms/) +into an existing +dynamic CMS. +--- body: ## Introduction diff --git a/models/blog-post.ini b/models/blog-post.ini index edccc34..45240da 100644 --- a/models/blog-post.ini +++ b/models/blog-post.ini @@ -27,3 +27,7 @@ width = 1/4 [fields.body] label = Body type = markdown + +[fields.abstract] +label = Abstract +type = markdown diff --git a/templates/macros/blog.html b/templates/macros/blog.html index d345b90..a3c5410 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -15,6 +15,6 @@ {% endif %} on {{ post.pub_date }}

- {{ post.body }} + {{ post.abstract }} {% endmacro %}