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 %}