diff --git a/layouts/index.html b/layouts/index.html index b530878..d4693ff 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ {{ partial "header.html" . }} -{{ partial "content.html" . }} +{{ partial "content-summary.html" . }} {{ partial "footer.html" . }} diff --git a/layouts/partials/content-summary.html b/layouts/partials/content-summary.html new file mode 100644 index 0000000..03f88e4 --- /dev/null +++ b/layouts/partials/content-summary.html @@ -0,0 +1,14 @@ +
+
+
+ {{ range .Data.Pages }} + {{ .Render "summary"}} + {{ end }} +
+ + {{ if not .Site.Params.sidebar.hide }} + {{ partial "sidebar.html" . }} + {{ end }} + +
+
diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 03f88e4..5be50b9 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,9 +1,11 @@
- {{ range .Data.Pages }} - {{ .Render "summary"}} - {{ end }} +
{{ if not .Site.Params.sidebar.hide }}