From 435a29679d2ecf4afa180b7f8a5cd792a6b5b764 Mon Sep 17 00:00:00 2001 From: Nathan Biller Date: Thu, 3 Oct 2019 10:16:01 -0400 Subject: [PATCH] Moved the homepage partials to the index.html file from the baseof.html template per souvou's recommendations. Single pages are working for me again :) --- layouts/_default/baseof.html | 29 ----------------------------- layouts/index.html | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 29 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f7762a6..241055d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -12,33 +12,6 @@ {{ block "main" . }} - - {{ if .Site.Params.hero }} - {{ partial "hero.html" . }} - {{ end }} - - {{ if .Site.Params.section1 }} - {{ partial "section1.html" . }} - {{ end }} - - {{ if .Site.Params.section2 }} - {{ partial "section2.html" . }} - {{ end }} - - {{ if .Site.Params.section3 }} - {{ partial "section3.html" . }} - {{ end }} - - {{ if .Site.Params.section4 }} - {{ partial "section4.html" . }} - {{ end }} - - {{ if .Site.Params.section5 }} - {{ partial "section5.html" . }} - {{ end }} - - {{ if .Site.Params.footer }} - {{ partial "footer.html" . }} {{ end }} @@ -47,8 +20,6 @@ {{ if .Site.Params.sidebar }} {{ partial "sidebar.html" . }} {{ end }} - - {{ end }} {{ partial "javascript.html" . }} diff --git a/layouts/index.html b/layouts/index.html index f319bf9..1d00000 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,2 +1,37 @@ {{ define "main" }} + {{ if .Site.Params.hero }} + {{ partial "hero.html" . }} + {{ end }} + + {{ if .Site.Params.section1 }} + {{ partial "section1.html" . }} + {{ end }} + + {{ if .Site.Params.section2 }} + {{ partial "section2.html" . }} + {{ end }} + + {{ if .Site.Params.section3 }} + {{ partial "section3.html" . }} + {{ end }} + + {{ if .Site.Params.section4 }} + {{ partial "section4.html" . }} + {{ end }} + + {{ if .Site.Params.section5 }} + {{ partial "section5.html" . }} + {{ end }} + + {{ if .Site.Params.footer }} + {{ partial "footer.html" . }} + {{ end }} + + +
+ + {{ if .Site.Params.sidebar }} + {{ partial "sidebar.html" . }} + {{ end }} + {{ end }} \ No newline at end of file