From 5777da3dda6d6dcd0d82188e45d65816f884ab02 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 21 Apr 2017 13:46:53 +0100 Subject: [PATCH] Cleanup single page content --- content/about.md | 2 +- layouts/_default/single.html | 20 +++++++++++--------- layouts/index.html | 6 ------ layouts/partials/page_end.html | 3 ++- layouts/partials/page_start.html | 2 ++ 5 files changed, 16 insertions(+), 17 deletions(-) diff --git a/content/about.md b/content/about.md index 93a8100..05df8a8 100644 --- a/content/about.md +++ b/content/about.md @@ -1,4 +1,4 @@ --- -title: about +title: About --- example about content diff --git a/layouts/_default/single.html b/layouts/_default/single.html index de32e71..3a2e3e3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,14 +1,16 @@ {{ partial "page_start.html" . }}
-
-

Generic

-

A generic page for every non-generic situation.

-
-
- - {{ .Content }} -
-
+
+

{{ title .Title }}

+ {{ if .Params.subtitle }} +

{{ .Params.subtitle }}

+ {{ end }} +
+
+ + {{ .Content }} +
+
{{ partial "page_end.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 7a98a0c..8ae735a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,8 @@ {{ partial "page_start.html" . }} -
@@ -98,5 +93,4 @@ -
{{ partial "page_end.html" . }} diff --git a/layouts/partials/page_end.html b/layouts/partials/page_end.html index e6460c2..5c1759a 100644 --- a/layouts/partials/page_end.html +++ b/layouts/partials/page_end.html @@ -1,4 +1,5 @@ - {{ partial "footer.html" . }} + {{ partial "footer.html" . }} + {{ partial "scripts.html" . }} diff --git a/layouts/partials/page_start.html b/layouts/partials/page_start.html index 1d8cfcf..945c2ff 100644 --- a/layouts/partials/page_start.html +++ b/layouts/partials/page_start.html @@ -14,3 +14,5 @@ {{ end }} {{ partial "navbar.html" . }} + +