diff --git a/content/contents.lr b/content/contents.lr index 211965f..4775b03 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -2,7 +2,8 @@ title: ungleich cms --- _model: page-2020 --- -content: There is not much here - everything is stored below /u/. +content: +There is not much here - everything is stored below /u/. You should actually not be able to see this page below ungleich.ch. If you do, please let us know. diff --git a/content/u/contents.lr b/content/u/contents.lr index e887d76..b873b52 100644 --- a/content/u/contents.lr +++ b/content/u/contents.lr @@ -2,10 +2,14 @@ _model: page-2020 --- title: /u/: the new home of ungleich --- -body: We are changing our CMS and our blog to a static +content: +We are changing our CMS and our blog to a static system based on [lektor](https://www.getlektor.com). Checkout the **source code** on [code.ungleich.ch](https://code.ungleich.ch/ungleich-public/ungleich-staticcms). Eventually, we might move all content from [ungleich.ch](https://ungleich.ch) into this CMS. +--- +body: old content +--- diff --git a/models/page-2020.ini b/models/page-2020.ini new file mode 100644 index 0000000..88d59f7 --- /dev/null +++ b/models/page-2020.ini @@ -0,0 +1,11 @@ +[model] +name = Page (2020 Design) +label = {{ this.title }} + +[fields.title] +label = Title +type = string + +[fields.content] +label = Content +type = markdown diff --git a/models/projects.ini b/models/projects.ini new file mode 100644 index 0000000..1cb2e71 --- /dev/null +++ b/models/projects.ini @@ -0,0 +1,15 @@ +[model] +name = Projects +label = Projects +hidden = yes + +[fields.title] +label = Title +type = string + +[fields.subtitle] +label = Subtitle +type = string + +[children] +model = page-2020 \ No newline at end of file diff --git a/templates/page-2020.html b/templates/page-2020.html new file mode 100644 index 0000000..71b3dec --- /dev/null +++ b/templates/page-2020.html @@ -0,0 +1,13 @@ +{% extends "layout-2020.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block subtitle %}{{ this.subtitle }}{% endblock %} + +{% block content %} +
+
+
+ {{ this.content }} +
+
+
+{% endblock %} diff --git a/templates/projects.html b/templates/projects.html new file mode 120000 index 0000000..c166ef2 --- /dev/null +++ b/templates/projects.html @@ -0,0 +1 @@ +summary-page.html \ No newline at end of file diff --git a/templates/summary-page.html b/templates/summary-page.html new file mode 100644 index 0000000..f1df195 --- /dev/null +++ b/templates/summary-page.html @@ -0,0 +1,32 @@ +{% extends "layout-2020.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block subtitle %}{{ this.subtitle }}{% endblock %} + +{% block content %} + +
+ {% for product in this.children %} + {% if loop.first %} +
+ {% endif %} +
+
+
+
{{ product.title }}
+

{{ product.subtitle }}

+ Check it out +
+
+
+ {% if loop.index is divisibleby 3 %} +
+
+ {% endif %} + {% if loop.last %} +
+ {% endif %} + {% endfor %} +
+ + +{% endblock %}