diff options
Diffstat (limited to 'web/layouts/single.html')
| -rw-r--r-- | web/layouts/single.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/web/layouts/single.html b/web/layouts/single.html new file mode 100644 index 0000000..8171148 --- /dev/null +++ b/web/layouts/single.html @@ -0,0 +1,23 @@ +{{ 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 .Description }}<p class="lede">{{ . }}</p>{{ end }} + </div> + {{ .Content }} + <p class="edit"> + <a href="{{ site.Params.repo }}/edit/main/web/content/{{ .File.Path }}">Edit this page</a> + </p> + </article> +</div> +{{ else }} +<article> + <h1>{{ .Title }}</h1> + {{ .Content }} +</article> +{{ end }} +{{ end }} |
