diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html index dd392f7..283990f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,6 +17,17 @@ </header> <main> {{ .Content }} + {{ $pages := where .Site.RegularPages "Type" "post" }} + {{ if isset .Site.Params "nohomepagepostlist" }} + <!-- No homepage post list --> + {{ else if ne (len $pages) 0 }} + <h1>Posts</h1> + <ul> + {{ range $pages.ByTitle }} + <li><a href="{{ .Permalink }}">{{ .Name }}</a></li> + {{ end }} + </ul> + {{ end }} </main> <footer> <hr /> |