diff options
Diffstat (limited to 'layouts/_default/home.html')
| -rw-r--r-- | layouts/_default/home.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..9f21fed --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,15 @@ +{{ define "title" }} + {{ .Title }} +{{ end }} +{{ define "body" }} + <h1>{{ .Title }}</h1> + <main> + {{ .Content }} + </main> + {{ if .Pages }} + <nav class="children"> + <h2>Contents of this website</h2> + {{ partial "children" . }} + </nav> + {{ end }} +{{ end }} |
