diff --git a/layouts/index.html b/layouts/index.html
index ead42da..0682188 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,8 @@
{{ define "main" }}
- {{- if .Content }}
+ {{- with .Content }}
- {{ with .Content }}
{{ . }}
{{ end }}
+
{{ . }}
{{- end }}
{{- $mainSections := .Site.Params.mainSections }}