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

github.com/geschke/hugo-tikva.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.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1c48b86..a0bf70a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -7,10 +7,24 @@
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
+
+
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
+
+
+ <!-- Changes due to 0.57 it seems to work, but feels strange -->
+ {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{ range $pages -}}
+ {{ .Render "summary"}}
+ {{ end -}}
+
</div>
+
+
+
+
<div>
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
{{/* Activate this (or copy the template into the site's layout folder) to display a page list