summary refs log tree commit diff stats
path: root/templates/page.html
diff options
context:
space:
mode:
authorAlan Pearce2020-11-14 21:17:02 +0100
committerAlan Pearce2020-11-14 21:52:50 +0100
commit5de7de4e64cb20183ebfe86e16578f4abd62a23e (patch)
treed3e24ee322d24c03a5e6563ace11c1c588881368 /templates/page.html
parentd996657be5efda94f4a934d5d78c407ba47bf76c (diff)
downloadwebsite-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.lz
website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.zst
website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.zip
Port theme to zola template
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html28
1 files changed, 28 insertions, 0 deletions
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 %}
+<article class="h-entry">
+  <header>
+    <h1><span class="title p-name">{{ page.title }}</span></h1>
+    <time class="dt-published" datetime="{{ page.date | date(format='%+') }}">{{ page.date | date(format="%F") }}</time>
+    <p class="terms">
+      {%- if page.taxonomies %}
+      {%- for name, taxon in page.taxonomies %}
+      {{ name | capitalize }}:
+      {%- for item in taxon %}
+      <a class="p-category" href="{{ get_taxonomy_url(kind=name, name=item) }}">{{ item }}</a>
+      {%- endfor %}
+      {%- endfor %}
+      {%- endif %}
+    </p>
+  </header>
+
+  <main class="e-content">
+    {{ page.content | safe }}
+  </main>
+</article>
+{% endblock %}