about summary refs log tree commit diff stats
path: root/templates/tags
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/tags
parentd996657be5efda94f4a934d5d78c407ba47bf76c (diff)
downloadwebsite-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.lz
website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.zst
website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.zip
Port theme to zola template
Diffstat (limited to 'templates/tags')
-rw-r--r--templates/tags/list.html18
-rw-r--r--templates/tags/single.html25
2 files changed, 43 insertions, 0 deletions
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 %}
+<main>
+  <h1>{{ taxonomy.name | capitalize }}</h1>
+  <section>
+    <ul>
+      {%- for term in terms %}
+        <li>
+          <a href="{{ term.permalink }}">{{ term.name }}</a>
+        </li>
+      {%- endfor %}
+    </ul>
+  </section>
+</main>
+{% 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" %}
+  <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path=rss_path, trailing_slash=false) | safe }}">
+
+{% endblock %}
+
+{% block title %}{{ taxonomy.name | capitalize }}: {{ term.name }} | {{ config.title }}{% endblock %}
+
+{% block main %}
+<main>
+  <h1>{{ taxonomy.name | capitalize }}: {{ term.name }}</h1>
+  <section>
+    <ul class="h-feed">
+      {%- for page in term.pages %}
+        <li class="h-entry">
+          <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%F") }}</time>
+          <a class="u-url p-name" href="{{ page.permalink | safe }}">{{ page.title }}</a>
+        </li>
+      {%- endfor %}
+    </ul>
+  </section>
+</main>
+{% endblock %}