From 4305aac1ac51c4619d9e161c78bd5a4a79e6a9b3 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 24 Feb 2019 18:11:12 +0100 Subject: [PATCH] optimize project site --- models/projekte.ini | 13 +++++++++++++ templates/projekte.html | 21 +++++++++++++-------- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/models/projekte.ini b/models/projekte.ini index 14c8696..c7f7621 100644 --- a/models/projekte.ini +++ b/models/projekte.ini @@ -15,6 +15,14 @@ type = text label = Begrüßungstext type = markdown +[fields.title2] +label = Title nach Begruessung +type = string + +[fields.description] +label = Description nach Begruessung +type = markdown + [fields.link] label = RSS Feed type = string @@ -30,3 +38,8 @@ order_by = -pub_date, title [pagination] enabled = yes per_page = 9999 + +[fields.desc] +label = HTML HEAD Description +type = string + diff --git a/templates/projekte.html b/templates/projekte.html index 9505f83..86398a8 100644 --- a/templates/projekte.html +++ b/templates/projekte.html @@ -1,6 +1,8 @@ {% extends "layout.html" %} {% from "macros/projekt.html" import render_blog_post %} - {% block title %}{{ this.title }}{% endblock %} +{% block title + %}{{ this.title }}{% +endblock %} {% block body %}
@@ -11,13 +13,17 @@
{{ this.begruessung }}
-
-
- {% for child in this.pagination.items|sort(attribute='number', reverse = True)%} - {{ render_blog_post(child, from_index=true) }} +
+

{{ this.title2 }}

+ {{ this.description2 }} +
+
+
{% + for child in this.pagination.items|sort(attribute='number', reverse = True)%} + {{ render_blog_post(child, from_index=true) }} {% endfor %}
-