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