diff options
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}} |
