diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 08:56:40 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 08:58:21 -0700 |
| commit | 735512086436dba4969107695ba7b93f09efce2e (patch) | |
| tree | 7bf014884a5d655d4477def39c9f794c9037b4fa /templates/cmd-index.html.template | |
| parent | Use /tmp/hole as the hole directory for local runs (diff) | |
| download | roseh.moe-735512086436dba4969107695ba7b93f09efce2e.tar.zst | |
Simplify the HTML templates by omitting end tags
Diffstat (limited to 'templates/cmd-index.html.template')
| -rw-r--r-- | templates/cmd-index.html.template | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/templates/cmd-index.html.template b/templates/cmd-index.html.template index 16b89b0..3e581a3 100644 --- a/templates/cmd-index.html.template +++ b/templates/cmd-index.html.template @@ -1,17 +1,12 @@ -{{define "head" -}} - <title>Commands</title> -{{- end}} +<title>Commands</title> -{{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}} +<section> + <p>Command index + <ul> + {{- range .Commands}} + <li> + <p><a href="https://pkg.go.dev/roseh.moe/cmd/{{.Name}}">{{.Name}}</a> - {{.Description}} + <p><code>go install roseh.moe/cmd/{{.Name}}{{if .Multi}}/...{{end}}@latest</code> + {{- end}} + </ul> +</section> |
