aboutsummaryrefslogtreecommitdiff
path: root/templates/tags
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-02 17:20:09 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-02 17:20:09 -0800
commit0d6c92124e6e21a536de6711ab5f82fa88200194 (patch)
tree874010499fcc32fe79c84087ecee405254f514ba /templates/tags
parentsmall tweak (diff)
downloadfcuny.net-0d6c92124e6e21a536de6711ab5f82fa88200194.tar.gz
basic setup for tags
Diffstat (limited to 'templates/tags')
-rw-r--r--templates/tags/list.html12
-rw-r--r--templates/tags/single.html12
2 files changed, 24 insertions, 0 deletions
diff --git a/templates/tags/list.html b/templates/tags/list.html
new file mode 100644
index 0000000..b7f904a
--- /dev/null
+++ b/templates/tags/list.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1>Tags</h1>
+<ul>
+ {% for term in terms %}
+ <li>
+ <a href="{{ term.permalink }}">{{ term.name }}</a> ({{ term.pages | length }} posts)
+ </li>
+ {% endfor %}
+</ul>
+{% endblock content %}
diff --git a/templates/tags/single.html b/templates/tags/single.html
new file mode 100644
index 0000000..b276f93
--- /dev/null
+++ b/templates/tags/single.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1>Tag: {{ term.name }}</h1>
+<ul>
+ {% for page in term.pages %}
+ <li>
+ <a href="{{ page.permalink }}">{{ page.title }}</a> - {{ page.date }}
+ </li>
+ {% endfor %}
+</ul>
+{% endblock content %}