Merge pull request #79 from nathanbiller/fixSinglePages#70
Fix single pages#70
This commit is contained in:
@@ -290,6 +290,8 @@ Single pages displays a single unit of information and are more or less independ
|
|||||||
|
|
||||||
You can create single pages in the `content` directory (even sub-dirs are possible).
|
You can create single pages in the `content` directory (even sub-dirs are possible).
|
||||||
|
|
||||||
|
If you'd like to have the footer displayed on your single page include "include_footer: true" in your front matter.
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Code</summary>
|
<summary>Code</summary>
|
||||||
|
|
||||||
@@ -298,6 +300,7 @@ You can create single pages in the `content` directory (even sub-dirs are possib
|
|||||||
title: AGB
|
title: AGB
|
||||||
sidebar: true # or false to display the sidebar
|
sidebar: true # or false to display the sidebar
|
||||||
sidebarlogo: fresh-white-alt # From (static/images/logo/)
|
sidebarlogo: fresh-white-alt # From (static/images/logo/)
|
||||||
|
include_footer: true
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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 -->
|
||||||
@@ -48,8 +21,6 @@
|
|||||||
{{ partial "sidebar.html" . }}
|
{{ partial "sidebar.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "javascript.html" . }}
|
{{ partial "javascript.html" . }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -15,6 +15,10 @@
|
|||||||
|
|
||||||
{{ partial "single/single.html" . }}
|
{{ partial "single/single.html" . }}
|
||||||
|
|
||||||
|
{{ if .Params.include_footer }}
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<!-- Back To Top Button -->
|
<!-- Back To Top Button -->
|
||||||
<div id="backtotop"><a href="#"></a></div>
|
<div id="backtotop"><a href="#"></a></div>
|
||||||
|
|
||||||
|
|||||||
@@ -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