diff options
Diffstat (limited to 'web/layouts/list.html')
| -rw-r--r-- | web/layouts/list.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/web/layouts/list.html b/web/layouts/list.html new file mode 100644 index 0000000..eccd90b --- /dev/null +++ b/web/layouts/list.html @@ -0,0 +1,27 @@ +{{ define "main" }} +{{ if eq .Section "docs" }} +<div class="docs"> + {{ partial "docs-nav.html" . }} + <article> + <div class="docs-head"> + <p class="kicker">docs</p> + <h1>{{ .Title }}</h1> + {{ with .Content }}{{ . }}{{ end }} + </div> + <ul class="pages"> + {{ range .Pages.ByWeight }} + <li> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + {{ with .Description }}<span class="summary">{{ . }}</span>{{ end }} + </li> + {{ end }} + </ul> + </article> +</div> +{{ else }} +<article> + <h1>{{ .Title }}</h1> + {{ .Content }} +</article> +{{ end }} +{{ end }} |
