summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosias <me@josias.dev>2021-04-24 11:50:04 -0700
committerJosias <me@josias.dev>2021-04-24 11:50:04 -0700
commit8d0a142fdd44391f5aec73d83810dafca8843bdc (patch)
treeb5b739ae4a20a24f918e743e92bec2f41128ecb1
parentd8ae152ec81d6cd24cdb7563343a1f0d5cc7b538 (diff)
www: add tags pages
-rw-r--r--www/templates/tags/list.html5
-rw-r--r--www/templates/tags/single.html12
2 files changed, 17 insertions, 0 deletions
diff --git a/www/templates/tags/list.html b/www/templates/tags/list.html
new file mode 100644
index 0000000..8bc9745
--- /dev/null
+++ b/www/templates/tags/list.html
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+
+{% block content %}
+{{ terms }}
+{% endblock content %}
diff --git a/www/templates/tags/single.html b/www/templates/tags/single.html
new file mode 100644
index 0000000..4b2315b
--- /dev/null
+++ b/www/templates/tags/single.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1>{{ term.name }}</h1>
+{% for page in term.pages %}
+<p><a href="{{ page.permalink }}">{{ page.title }}</a></p>
+{% endfor %}
+{% endblock content %}
+
+{% block rss %}
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml", trailing_slash=false) }}">
+{% endblock %}