summaryrefslogtreecommitdiff
path: root/srv/src/api/tpl/index.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 08:36:52 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 08:42:54 -0600
commit1242be7cfec1faa6a880d625307e32a1a91937ac (patch)
treec0dc03c6d384b7e6757eb6076d9208c7c038cb3f /srv/src/api/tpl/index.html
parent5a997781871db4c1f504e2f59e14541bb1e62dcb (diff)
Implement posts index page
Diffstat (limited to 'srv/src/api/tpl/index.html')
-rw-r--r--srv/src/api/tpl/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/srv/src/api/tpl/index.html b/srv/src/api/tpl/index.html
index b634169..946a3e4 100644
--- a/srv/src/api/tpl/index.html
+++ b/srv/src/api/tpl/index.html
@@ -5,7 +5,7 @@
{{ range .Payload.Posts }}
<li>
<h2>
- <a href="posts/{{ .HTTPPath }}">{{ .Title }}</a>
+ <a href="{{ PostURL .ID }}">{{ .Title }}</a>
</h2>
<span>{{ .PublishedAt.Format "2006-01-02" }}</span>
{{ if not .LastUpdatedAt.IsZero }}