diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-08-15 08:38:43 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-08-15 08:38:43 -0700 |
| commit | b522360a74a7d32fec85e8ae4ac4ba9a279b7a4c (patch) | |
| tree | 1b3960d0d9ff035dfa815b4b3d3258558d34cf9b /templates/cmd-index.html.template | |
| parent | f6356df0131adb8098ff1fd5e8578707aa1af06b (diff) | |
| download | roseh.moe-b522360a74a7d32fec85e8ae4ac4ba9a279b7a4c.tar.zst | |
Fix html formatting
...finally
Diffstat (limited to 'templates/cmd-index.html.template')
| -rw-r--r-- | templates/cmd-index.html.template | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/templates/cmd-index.html.template b/templates/cmd-index.html.template index fb8c626..16b89b0 100644 --- a/templates/cmd-index.html.template +++ b/templates/cmd-index.html.template @@ -1,15 +1,17 @@ -{{define "head"}} - <title>Commands</title> -{{end}} +{{define "head" -}} + <title>Commands</title> +{{- end}} -<section> - <p>Command index</p> - <ul> - {{range .Commands}} - <li> - <p><a href="https://pkg.go.dev/roseh.moe/cmd/{{.Name}}">{{.Name}}</a> - {{.Description}}</p> - <p><code>go install roseh.moe/cmd/{{.Name}}{{if .Multi}}/...{{end}}@latest</code></p> - </li> - {{end}} - </ul> -</section> +{{define "body" -}} + <section> + <p>Command index</p> + <ul> + {{- range .Commands}} + <li> + <p><a href="https://pkg.go.dev/roseh.moe/cmd/{{.Name}}">{{.Name}}</a> - {{.Description}}</p> + <p><code>go install roseh.moe/cmd/{{.Name}}{{if .Multi}}/...{{end}}@latest</code></p> + </li> + {{- end}} + </ul> + </section> +{{- end}} |
