summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2021-01-23 17:55:19 -0600
committerBlaise Thompson <blaise@untzag.com>2021-01-23 17:55:19 -0600
commit910c22d071e0f2c0748f172b7318147e8a45201f (patch)
tree3e2b0715842c81f5221a9883da501b240d95bf2d /templates
parent64113bee2f3d5964bbeabfce09324d11f4d3c255 (diff)
tags
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html6
-rw-r--r--templates/tags.html30
2 files changed, 34 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 7a74e3c..554d418 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -9,16 +9,18 @@
<p>
Welcome to my personal blog! <br>
This page lists my blog entries in reverse chronological order. <br>
-You may also browse by tag (coming soon). <br>
+You may also <a href="./tags/">browse by tag</a>. <br>
You may be interested in my <a href=./meta/>meta</a> post. <br>
Thanks for stopping by! —Blaise
</p>
-
<p>
{% for post in posts %}
{{ post.date }}
<a href=./{{ post.path }}>{{ post.title }}</a>
+ {% for tag in post.tags %}
+ <a href="./tags/#{{ tag }}" style="color:#b294bb;font-style:italic;">#{{ tag }}</a>
+ {% endfor %}
<br>
{% endfor %}
</p>
diff --git a/templates/tags.html b/templates/tags.html
new file mode 100644
index 0000000..e788ce5
--- /dev/null
+++ b/templates/tags.html
@@ -0,0 +1,30 @@
+{% include "header.html" %}
+
+<h1>
+<a href=http://blaise.zone>blaise</a>-<a href="../">blog</a>/tags
+</h1>
+
+<hr>
+
+{% for tag in tags %}
+
+<h1 id={{ tag }}><a href="#{{ tag }}">{{ tag }}</a></h1>
+
+<p>
+{% for post in posts %}
+ {% if tag in post.tags %}
+ {{ post.date }}
+ <a href=./{{ post.path }}>{{ post.title }}</a>
+ {% for tag_ in post.tags %}
+ {% if tag_ != tag %}
+ <a href="./tags/#{{ tag_ }}" style="color:#b294bb;font-style:italic;">#{{ tag_ }}</a>
+ {% endif %}
+ {% endfor %}
+ <br>
+ {% endif %}
+{% endfor %}
+</p>
+
+{% endfor %}
+
+{% include "footer.html" %}