From 08ce0c1e5846f53b73777eaf9a28e0e42f355bfb Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 8 Mar 2021 10:43:00 +0100 Subject: [PATCH] add body to blog... --- content/blog/contents.lr | 2 ++ models/blog.ini | 5 +++++ templates/blog.html | 7 +++++++ 3 files changed, 14 insertions(+) diff --git a/content/blog/contents.lr b/content/blog/contents.lr index 56be89d6..26d63903 100644 --- a/content/blog/contents.lr +++ b/content/blog/contents.lr @@ -1,3 +1,5 @@ _model: blog --- title: Blog +--- +body: Der WTF Blog™ diff --git a/models/blog.ini b/models/blog.ini index 4746ea04..9cb247a0 100644 --- a/models/blog.ini +++ b/models/blog.ini @@ -13,6 +13,11 @@ label = Meta Beschreibung description = Hier kommt die Beschreibung rein, die von Suchmachinen, Seitencrawlern und Previews auf diese Seite generiert werden type = string +[fields.body] +label = Body +description = Beschreibung des Blog +type = markdown + [children] model = blog-post order_by = -pub_date, title diff --git a/templates/blog.html b/templates/blog.html index c212cac5..c1dbf0af 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -16,6 +16,13 @@

{{ this.title }}

+
+
+
+ {{ this.body }} +
+
+
{% for blog_post in this.pagination.items %} {{ render_blog_post(blog_post, from_index=true, section_class=loop.cycle('-odd', '-even')) }} {% if loop.index == loop.length %}