From ff6a6cdc4a62726e4ff1a0b83b6791d0f48dbb3c Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 9 Jan 2022 17:33:15 +0100 Subject: [PATCH] add basic lektor site layout --- models/page.ini | 11 +++++++ templates/layout.html | 52 ++++++++++++++++++++++++++++++++ templates/macros/pagination.html | 15 +++++++++ templates/page.html | 6 ++++ 4 files changed, 84 insertions(+) create mode 100644 models/page.ini create mode 100644 templates/layout.html create mode 100644 templates/macros/pagination.html create mode 100644 templates/page.html diff --git a/models/page.ini b/models/page.ini new file mode 100644 index 0000000..dcddfe8 --- /dev/null +++ b/models/page.ini @@ -0,0 +1,11 @@ +[model] +name = Page +label = {{ this.title }} + +[fields.title] +label = Title +type = string + +[fields.body] +label = Body +type = markdown diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..072f566 --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,52 @@ + +{%- macro titlestring() -%} + {% block title %}Welcome{% endblock %} — winkekatze.tv +{%- endmacro -%} +{%- macro descriptionstring() -%} + {% block description %}Winkekatze Video Operation Center{% endblock %} — winkekatze.tv +{%- endmacro -%} + + + + + {{- titlestring() -}} + + + + + + + + + + + + +
+

winkekatze.tv

+ +
+
+ {%- block body -%} + {%- endblock -%} +
+ + diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html new file mode 100644 index 0000000..077cc5a --- /dev/null +++ b/templates/macros/pagination.html @@ -0,0 +1,15 @@ +{% macro render_pagination(pagination) %} + +{% endmacro %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..0430577 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,6 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +

{{ this.title }}

+ {{ this.body }} +{% endblock %}