From 01322efeb2c8b0521d66de459cbe3b9d71e1259e Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Mon, 15 Jun 2020 19:52:15 +0200 Subject: Cleanup and Fixes --- layouts/index.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index 3de3e62..01b8253 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,10 +1,6 @@ {{ define "main" -}}
- {{- $regularPages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}} - {{- $pagesNotHidden := where $regularPages ".Params.hidden" "==" false -}} - {{- $pagesHiddenUnset := where $regularPages ".Params.hidden" "==" nil -}} - - {{- $pages := $pagesNotHidden | union $pagesHiddenUnset -}} + {{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}} {{- $paginator := .Paginate $pages -}} {{ range $paginator.Pages }} @@ -14,14 +10,12 @@ - {{ if .Description }} - {{ .Description }} - {{ else }} +
{{ .Summary }} - {{ end }} +
{{ if .Truncated }}