Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/blankoworld/hugo_theme_adam_eve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html11
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 />