diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..2384984 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,15 @@ +{{ partial "head.html" . }} +{{ partial "header.html" . }} +<main> + {{ .Content }} + <hr /> + <h2>Recent Posts</h2> + <ul> + {{ range (where .Site.Pages "Section" "blog") }} + {{ range .Pages }} + <li><a href="{{ .Permalink }}">{{.Date.Format "Jan 2, 2006"}} - {{ .Name }}</a></li> + {{ end }} + {{ end }} + </ul> +</main> +{{ partial "footer.html" . }} |