From c6f64e239a3ec74d7cebdf8c4d5881adaedd69a8 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 7 Jan 2018 17:19:34 -0500 Subject: [PATCH] Updated layout. --- layouts/_default/baseof.html | 4 +--- layouts/_default/single.html | 12 +++++++----- layouts/entry/single.html | 18 ++++++++++-------- layouts/partials/home_hero.html | 1 + layouts/partials/layout/navbar.html | 3 +++ layouts/partials/layout/navbar_contents.html | 5 +++++ 6 files changed, 27 insertions(+), 16 deletions(-) create mode 100644 layouts/partials/layout/navbar.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 770ee48..020cde9 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -27,9 +27,7 @@ {{- if not .IsHome }} - + {{ partial "layout/navbar" . }} {{- end }} {{ block "main" . }}{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a8472c9..bce4ca3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,11 @@ {{ define "main" }} -
-

{{ .Title }}

-

{{ .Date.Format "January 02 2006" }}

-
- {{ .Content }} +
+
+

{{ .Title }}

+

{{ .Date.Format "January 02 2006" }}

+
+ {{ .Content }} +
{{ end }} \ No newline at end of file diff --git a/layouts/entry/single.html b/layouts/entry/single.html index 2580a0e..5159f67 100644 --- a/layouts/entry/single.html +++ b/layouts/entry/single.html @@ -1,13 +1,15 @@ {{ define "main" }} -
- -
+
+
+ +
-
-

{{ .Title }}

-

{{ .Date.Format "January 02 2006" }}

-
- {{ .Content }} +
+

{{ .Title }}

+

{{ .Date.Format "January 02 2006" }}

+
+ {{ .Content }} +
{{ end }} \ No newline at end of file diff --git a/layouts/partials/home_hero.html b/layouts/partials/home_hero.html index 8de8a21..46240a7 100644 --- a/layouts/partials/home_hero.html +++ b/layouts/partials/home_hero.html @@ -1,5 +1,6 @@
+ diff --git a/layouts/partials/layout/navbar.html b/layouts/partials/layout/navbar.html new file mode 100644 index 0000000..deee567 --- /dev/null +++ b/layouts/partials/layout/navbar.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/layouts/partials/layout/navbar_contents.html b/layouts/partials/layout/navbar_contents.html index dfb7a6c..fc50588 100644 --- a/layouts/partials/layout/navbar_contents.html +++ b/layouts/partials/layout/navbar_contents.html @@ -37,6 +37,11 @@ + + + + +