diff --git a/layouts/index.html b/layouts/index.html index 20bdb1a..ea47e5c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,18 @@ {{ define "main" }}
+ {{- if .Content }} +
+ {{ with .Content }}
{{ . }}
{{ end }} +
+ {{- end }}
- {{ $mainSections := .Site.Params.mainSections | default (slice "post") }} - {{ $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }} - {{ range $paginator.Pages }} + {{- $mainSections := .Site.Params.mainSections | default (slice "post") }} + {{- $paginator := .Paginate (where .Data.Pages "Section" "in" $mainSections) }} + {{- range $paginator.Pages }}
{{ .Render "summary" }}
- {{ end }} + {{- end }}
{{- if and (not .Site.Params.hideNoPostsWarning) (eq $paginator.TotalNumberOfElements 0) }}