diff options
| author | William Ouwehand | 2023-05-19 09:37:30 +0200 |
|---|---|---|
| committer | Jieiku | 2023-05-22 23:25:19 -0700 |
| commit | 76c92f0d7f35a808c69fd21c5a1ed9b664cd6b5b (patch) | |
| tree | 657b43f2e2c2503651cbef3efd3575797b4f9d8c | |
| parent | 3af6d9131f6dfc138856d718ec96626344095ec8 (diff) | |
| download | abridge-76c92f0d7f35a808c69fd21c5a1ed9b664cd6b5b.tar.gz abridge-76c92f0d7f35a808c69fd21c5a1ed9b664cd6b5b.tar.bz2 abridge-76c92f0d7f35a808c69fd21c5a1ed9b664cd6b5b.zip | |
show section content in posts.html
| -rw-r--r-- | templates/posts.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/posts.html b/templates/posts.html index 13dc274..55d997f 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -43,6 +43,9 @@ This Template can also be used as the rendering template for Sections, eg: examp {%- if section_item.title %} <h2>{{ section_item.title }}</h2> {%- endif %} + + {{ section_item.content | safe }} + {%- for year, posts in section_item.pages | group_by(attribute="year") %} {%- if section_item.title %}<h3>{{ year }}</h3>{%- else %}<h2>{{ year }}</h2>{%- endif %} {%- for post in posts %} |
