summaryrefslogtreecommitdiffstats
path: root/templates/index.html.template
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-10-23 17:24:54 -0700
committerRose Hogenson <rosehogenson@posteo.net>2024-10-23 17:24:54 -0700
commit9c7895f5cdd27aeadcaa7128682a047cfc4fb3f8 (patch)
tree095be38789871a82d1aebd0ed3cf2547b7b850db /templates/index.html.template
parent44645b7ec78750ee61e9f65313242788c324437d (diff)
downloadroseh.moe-9c7895f5cdd27aeadcaa7128682a047cfc4fb3f8.tar.zst
Don't pre-render templates.
Diffstat (limited to 'templates/index.html.template')
-rw-r--r--templates/index.html.template6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/index.html.template b/templates/index.html.template
index 5c8d11b..43e35f9 100644
--- a/templates/index.html.template
+++ b/templates/index.html.template
@@ -1,3 +1,5 @@
+{{define "title"}}roseh.moe{{end}}
+
<div style="background-image:url(/static/index/stars.gif);background-repeat:repeat;height:500px;display:flex;justify-content:center;align-items:center">
<h1>roseh.moe</h1>
</div>
@@ -10,8 +12,8 @@
<p><a href="/pong">Games?</a> (Warning: loud)</p>
</article>
-{{range .Posts}}
+{{range .}}
<article>
- <a href="/blog/{{.}}"><h2>{{name .}}</h2></a>
+ <a href="/blog/{{.Slug}}"><h2>{{.Name}}</h2></a>
</article>
{{end}}