add body to blog...

This commit is contained in:
L3D 2021-03-08 10:43:00 +01:00
parent 10305dcd73
commit 08ce0c1e58
No known key found for this signature in database
GPG Key ID: CD08445BFF4313D1
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,5 @@
_model: blog
---
title: Blog
---
body: Der WTF Blog™

View File

@ -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

View File

@ -16,6 +16,13 @@
<h1>{{ this.title }}</h1>
</div>
</div>
<section class="content -odd -columns">
<div class="content__box">
<div class="content__inner_box">
{{ this.body }}
</div>
</div>
</section>
{% 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 %}