From 5de7de4e64cb20183ebfe86e16578f4abd62a23e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 14 Nov 2020 21:17:02 +0100 Subject: Port theme to zola template --- templates/base.html | 25 +++++++++++++++++++++++++ templates/categories/list.html | 1 + templates/categories/single.html | 1 + templates/index.html | 36 ++++++++++++++++++++++++++++++++++++ templates/page.html | 28 ++++++++++++++++++++++++++++ templates/section.html | 18 ++++++++++++++++++ templates/tags/list.html | 18 ++++++++++++++++++ templates/tags/single.html | 25 +++++++++++++++++++++++++ 8 files changed, 152 insertions(+) create mode 100644 templates/base.html create mode 120000 templates/categories/list.html create mode 120000 templates/categories/single.html create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/section.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..6b99609 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,25 @@ + + + + + + {% block title %}{{ section.title }} | {{ config.title }}{% endblock %} + + {%- if config.generate_feed %} + {%- block rss %} + + {%- endblock %} + {%- endif %} + + + + {% block main %}{% endblock %} + + + diff --git a/templates/categories/list.html b/templates/categories/list.html new file mode 120000 index 0000000..e0e4e08 --- /dev/null +++ b/templates/categories/list.html @@ -0,0 +1 @@ +../tags/list.html \ No newline at end of file diff --git a/templates/categories/single.html b/templates/categories/single.html new file mode 120000 index 0000000..86f5e80 --- /dev/null +++ b/templates/categories/single.html @@ -0,0 +1 @@ +../tags/single.html \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..23ec4cd --- /dev/null +++ b/templates/index.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} + +{% block main %} +
+

{{ config.title }}

+ {{ section.content | safe }} +
+

Latest Posts

+ +
+
+

Elsewhere on the Internet

+ +
+ +
+{% endblock %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..f32a6fc --- /dev/null +++ b/templates/page.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} + +{% block title %} +{{- page.title -}} +{% endblock %} + +{% block main %} +
+
+

{{ page.title }}

+ +

+ {%- if page.taxonomies %} + {%- for name, taxon in page.taxonomies %} + {{ name | capitalize }}: + {%- for item in taxon %} + {{ item }} + {%- endfor %} + {%- endfor %} + {%- endif %} +

+
+ +
+ {{ page.content | safe }} +
+
+{% endblock %} diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..e61566f --- /dev/null +++ b/templates/section.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block main %} +
+

{{ section.title }}

+ {{ section.content }} +
+ +
+
+{% endblock %} diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..ee60c39 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}{{ taxonomy.name | capitalize }}{% endblock %} + +{% block main %} +
+

{{ taxonomy.name | capitalize }}

+
+ +
+
+{% endblock %} diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..25dde54 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block rss %} + {% set rss_path = "tags/" ~ term.name ~ "/atom.xml" %} + + +{% endblock %} + +{% block title %}{{ taxonomy.name | capitalize }}: {{ term.name }} | {{ config.title }}{% endblock %} + +{% block main %} +
+

{{ taxonomy.name | capitalize }}: {{ term.name }}

+
+ +
+
+{% endblock %} -- cgit 1.4.1