diff --git a/layouts/index.html b/layouts/index.html index 90b9b32..0c5dcd8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,15 +5,17 @@ {{ with .Content }}
{{ . }}
{{ end }} {{- end }} -
{{- $mainSections := .Site.Params.mainSections }} {{- $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }} - {{- range $paginator.Pages }} -
- {{ .Render "summary" }} + {{- if gt $paginator.TotalNumberOfElements 0 }} +
+ {{- range $paginator.Pages }} +
+ {{ .Render "summary" }} +
+ {{- end }}
{{- end }} -
{{- if and (not .Site.Params.hideNoPostsWarning) (eq $paginator.TotalNumberOfElements 0) }}
¯\_(ツ)_/¯