From 164c306795577ec7667d338c28a7544bbb8c241b Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 30 May 2020 20:07:21 +0200 Subject: et up baseic structure for homepage/blog with Zola --- templates/base.html | 30 +++++++++++++++ templates/index.html | 81 ++++++++++++++++++++++++++++++++++++++++ templates/page.html | 16 ++++++++ templates/shortcodes/figure.html | 6 +++ templates/tags/list.html | 5 +++ templates/tags/single.html | 1 + 6 files changed, 139 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/shortcodes/figure.html create mode 100644 templates/tags/list.html create mode 100644 templates/tags/single.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..a921ed6 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,30 @@ + + + + + + + + {% if page.title %}{{ page.title }}{% else %}{{ config.title }}{% endif %} + + + + {# #} + + + + + {#% include header.html %#} + +
+
+ {% block content %} + {% endblock content %} +
+
+ + {#% include footer.html %#} + + + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..d883a57 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,81 @@ +{% extends "base.html" %} +{% block content %} + +
+
+ {{ section.content | safe }} +
+ + +
+ +
+ +
+{% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..56317a7 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block content %} +
+

{{ page.title }}

+
+ + Publisert: {{ page.date }} + {% if page.author %}av {{ page.author }}{% endif %} + + + Merket: {{ page.taxonomies['tags'] | join(sep=", ") }} + +
+ {{ page.content | safe }} +
+{% endblock content %} diff --git a/templates/shortcodes/figure.html b/templates/shortcodes/figure.html new file mode 100644 index 0000000..7fb4123 --- /dev/null +++ b/templates/shortcodes/figure.html @@ -0,0 +1,6 @@ +
+ +
+ {{ body }} +
+
diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..e9eac41 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,5 @@ + diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..1e00fa6 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1 @@ +{{ term.name }} -- cgit v1.2.3