summaryrefslogtreecommitdiffstats
path: root/templates/pkg-index.html.template
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-09-08 08:56:40 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-09-08 08:58:21 -0700
commit735512086436dba4969107695ba7b93f09efce2e (patch)
tree7bf014884a5d655d4477def39c9f794c9037b4fa /templates/pkg-index.html.template
parentUse /tmp/hole as the hole directory for local runs (diff)
downloadroseh.moe-735512086436dba4969107695ba7b93f09efce2e.tar.zst
Simplify the HTML templates by omitting end tags
Diffstat (limited to 'templates/pkg-index.html.template')
-rw-r--r--templates/pkg-index.html.template22
1 files changed, 9 insertions, 13 deletions
diff --git a/templates/pkg-index.html.template b/templates/pkg-index.html.template
index fc88ed4..67417c2 100644
--- a/templates/pkg-index.html.template
+++ b/templates/pkg-index.html.template
@@ -1,14 +1,10 @@
-{{define "head" -}}
- <title>Packages</title>
-{{- end}}
+<title>Packages</title>
-{{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}}
+<section>
+ <p>Package index
+ <ul>
+ {{- range .Packages}}
+ <li><p><a href="https://pkg.go.dev/roseh.moe/pkg/{{.Name}}">roseh.moe/pkg/{{.Name}}</a> - {{.Description}}
+ {{- end}}
+ </ul>
+</section>