summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 17:43:47 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 17:43:47 -0600
commit1f42c5e000c3fc09e201a8e87eb79ea05cad7e35 (patch)
tree1c23c94cf1a59e25aea63e4f422aa7cd86387805 /srv/src/http/tpl
parent47d478790742a8876af187b34b766b0e8a772bf5 (diff)
Add tag selector to index
Diffstat (limited to 'srv/src/http/tpl')
-rw-r--r--srv/src/http/tpl/index.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/srv/src/http/tpl/index.html b/srv/src/http/tpl/index.html
index e27cbef..c75affc 100644
--- a/srv/src/http/tpl/index.html
+++ b/srv/src/http/tpl/index.html
@@ -1,5 +1,12 @@
{{ define "body" }}
+ <p>
+ By Tag:
+ {{ range .Payload.Tags }}
+ <a href="{{ BlogURL "/" }}?tag={{ . }}">{{ . }}</a>
+ {{ end }}
+ </p>
+
<ul id="posts-list">
{{ range .Payload.Posts }}