summaryrefslogtreecommitdiffstats
path: root/templates/pkg-index.html.template
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-08-15 08:38:43 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-08-15 08:38:43 -0700
commitb522360a74a7d32fec85e8ae4ac4ba9a279b7a4c (patch)
tree1b3960d0d9ff035dfa815b4b3d3258558d34cf9b /templates/pkg-index.html.template
parentf6356df0131adb8098ff1fd5e8578707aa1af06b (diff)
downloadroseh.moe-b522360a74a7d32fec85e8ae4ac4ba9a279b7a4c.tar.zst
Fix html formatting
...finally
Diffstat (limited to 'templates/pkg-index.html.template')
-rw-r--r--templates/pkg-index.html.template24
1 files changed, 13 insertions, 11 deletions
diff --git a/templates/pkg-index.html.template b/templates/pkg-index.html.template
index d8cd12e..fc88ed4 100644
--- a/templates/pkg-index.html.template
+++ b/templates/pkg-index.html.template
@@ -1,12 +1,14 @@
-{{define "head"}}
- <title>Packages</title>
-{{end}}
+{{define "head" -}}
+ <title>Packages</title>
+{{- end}}
-<section>
- <p>Package index</p>
- <ul>
- {{range .Packages}}
- <li><p><a href="https://pkg.go.dev/roseh.moe/pkg/{{.Name}}">roseh.moe/pkg/{{.Name}}</a> - {{.Description}}</p></li>
- {{end}}
- </ul>
-</section>
+{{define "body" -}}
+ <section>
+ <p>Package index</p>
+ <ul>
+ {{- range .Packages}}
+ <li><p><a href="https://pkg.go.dev/roseh.moe/pkg/{{.Name}}">roseh.moe/pkg/{{.Name}}</a> - {{.Description}}</p></li>
+ {{- end}}
+ </ul>
+ </section>
+{{- end}}