summaryrefslogtreecommitdiffstats
path: root/templates/cmd-index.html.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/cmd-index.html.template')
-rw-r--r--templates/cmd-index.html.template27
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>