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 :)
This commit is contained in:
@@ -12,33 +12,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ block "main" . }}
|
{{ 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 }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Back To Top Button -->
|
<!-- Back To Top Button -->
|
||||||
@@ -47,8 +20,6 @@
|
|||||||
{{ if .Site.Params.sidebar }}
|
{{ if .Site.Params.sidebar }}
|
||||||
{{ partial "sidebar.html" . }}
|
{{ partial "sidebar.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "javascript.html" . }}
|
{{ partial "javascript.html" . }}
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1,2 +1,37 @@
|
|||||||
{{ define "main" }}
|
{{ 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 }}
|
||||||
|
|
||||||
|
<!-- Back To Top Button -->
|
||||||
|
<div id="backtotop"><a href="#"></a></div>
|
||||||
|
|
||||||
|
{{ if .Site.Params.sidebar }}
|
||||||
|
{{ partial "sidebar.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
Reference in New Issue
Block a user