forked from ag_kommunikation/webseite
add body to blog...
This commit is contained in:
parent
10305dcd73
commit
08ce0c1e58
@ -1,3 +1,5 @@
|
||||
_model: blog
|
||||
---
|
||||
title: Blog
|
||||
---
|
||||
body: Der WTF Blog™
|
||||
|
@ -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
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user