diff --git a/content/contents.lr b/content/contents.lr index 77675a00..3a34df00 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -1,4 +1,21 @@ -_model: multisection +_model: homepage --- title: Multisection --- +claim_heading: + +## Werde Teilchen­beschleu­nigerIn
in der chaosnahen Genossenschaft. +--- +claim_content: + +Booste Projekte mit Unterstütung von 150 GenossInnen
Genossen­schaftlich & solidarisch. +--- +subclaim_heading: + +## Genossenschaft zur Erschließung neuer
Betätigungs­formen in der Informations­technologie. +--- +subclaim_content: + +Wir halten Mitglieder und Interessierte durch regelmäßige Rundmails, Beiträge im Wiki und unseren Podcast auf dem Laufenden.
+Unseren Podcast findest du auf [vebit.xyz/podcast](https://vebit.xyz/pocast). +--- \ No newline at end of file diff --git a/models/homepage.ini b/models/homepage.ini new file mode 100644 index 00000000..c213ebf5 --- /dev/null +++ b/models/homepage.ini @@ -0,0 +1,26 @@ +[model] +name = Homepage +label = Homepage + +[fields.title] +label = Title +type = string + +[fields.claim_heading] +label = Claim Heading +type = markdown + +[fields.claim_content] +label = Claim Content +type = markdown + +[fields.subclaim_heading] +label = Subclaim Heading +type = markdown + +[fields.subclaim_content] +label = Subclaim Content +type = markdown + +[children] +order_by = sort_key diff --git a/templates/homepage.html b/templates/homepage.html new file mode 100644 index 00000000..5032abb2 --- /dev/null +++ b/templates/homepage.html @@ -0,0 +1,25 @@ +{% extends "layout.html" %} +{% from "macros/multisection.html" import render_section %} +{% block body %} +
+
+

{{ this.title }}

+
+
+ {% for child in this.children %} + {% if child._model == 'section' %} +
+ {% if child.title %} +
+
+

{{ child.title }}


+
+
+ {% endif %} +
+ {{ render_section(child) }} +
+
+ {% endif %} + {% endfor %} +{% endblock %} diff --git a/templates/layout.html b/templates/layout.html index e6752a92..41c1aeb8 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -102,25 +102,13 @@
-

- Werde Teilchen­beschleu­nigerIn
- in der chaosnahen Genossenschaft. -

-

- Booste Projekte mit Unterstütung von 150 GenossInnen
- Genossen­schaftlich & solidarisch. -

+ {{ this.claim_heading }} + {{ this.claim_content }}
-

- Genossenschaft zur Erschließung neuer
- Betätigungs­formen in der Informations­technologie. -

-

- Wir halten Mitglieder und Interessierte durch regelmäßige Rundmails, Beiträge im Wiki und unseren Podcast auf dem Laufenden.
- Unseren Podcast findest du auf vebit.xyz/podcast. -

+ {{ this.subclaim_heading }} + {{ this.subclaim_content }}
diff --git a/templates/macros/multisection.html b/templates/macros/multisection.html index 1ecb8d71..171c614a 100644 --- a/templates/macros/multisection.html +++ b/templates/macros/multisection.html @@ -1,5 +1,5 @@ {% macro render_section(section) %} -
+
{{ section.body }}
{% endmacro %} diff --git a/templates/multisection.html b/templates/multisection.html index 651b816d..5b66129e 100644 --- a/templates/multisection.html +++ b/templates/multisection.html @@ -5,9 +5,7 @@ {% if child._model == 'section' %}
-
- {{ render_section(child) }} -
+ {{ render_section(child) }}
{% endif %}