diff options
Diffstat (limited to 'templates/pkg-index.html.template')
| -rw-r--r-- | templates/pkg-index.html.template | 24 |
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}} |
