From e4cd676f3a29b12d9569bd3e0339677c17c998bc Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 30 Aug 2016 12:45:13 +0300 Subject: [PATCH] Reorganize summary and single post layouts Now shows blog posts on their target page. --- layouts/index.html | 2 +- layouts/partials/content-summary.html | 14 ++++++++++++++ layouts/partials/content.html | 8 +++++--- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/content-summary.html 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 }}