diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/layouts/index.html b/layouts/index.html index 9e13908..94380f6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,29 +1,30 @@ <!DOCTYPE html> <html lang="{{ .Site.LanguageCode }}"> - {{ partial "head.html" . }} +{{ partial "head.html" . }} - <body> - <div class="container"> +<body> + <div class="container"> - {{ partial "header.html" . }} + {{ partial "header.html" . }} - <section> + <section> - {{ range first (index .Site.Params "homepageposts" | default 3) (where .Data.Pages "Type" "post") }} - <article> - {{ .Render "list-item-expanded" }} - </article> - {{ end }} + {{ range first (index .Site.Params "homepageposts" | default 3) (where site.RegularPages "Type" "in" site.Params.mainSections) }} + <article> + {{ .Render "list-item-expanded" }} + </article> + {{ end }} - </section> + </section> - {{ partial "nav.html" . }} + {{ partial "nav.html" . }} - {{ partial "footer.html" . }} + {{ partial "footer.html" . }} - </div> + </div> {{ partial "highlight" . }} - </body> +</body> + </html> |