From d4433a4244538e0a72c3c359e7d2db7bed564274 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 4 Jan 2018 18:11:00 -0500 Subject: [PATCH] Updated base theme. Created header, split menu. --- layouts/_default/baseof.html | 78 +++++++++++++-------------- layouts/index.html | 17 ++---- layouts/partials/header_homepage.html | 26 +-------- layouts/partials/navbar.html | 14 +++++ layouts/partials/sidebar.html | 1 + 5 files changed, 58 insertions(+), 78 deletions(-) create mode 100644 layouts/partials/navbar.html create mode 100644 layouts/partials/sidebar.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a2e0e71..a532c5e 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,52 +2,52 @@ - - - - - - - {{- if eq .IsPage true }} {{ .Render "meta" }} {{- end }} {{ .Hugo.Generator }} + + + + + + + {{- if eq .IsPage true }} {{ .Render "meta" }} {{- end }} {{ .Hugo.Generator }} - - - {{ if .RSSLink }} - - {{ end }} + + + {{ if .RSSLink }} + + {{ end }} - {{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}} - - - - {{ if eq (getenv "HUGO_ENV") "PRD" }} - - {{ else }} - - {{ end }} + {{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}} + + {{ if eq (getenv "HUGO_ENV") "PRD" }} + {{ else }} + {{ end }} - {{- if not .IsHome }} - {{ partial "menu" . }} - {{- else }} - {{ partial "header_homepage" . }} - {{- end }} + {{ partial "navbar" . }} + + {{- if .IsHome }} {{ partial "header_homepage" . }} {{- end }} - {{ block "main" . }}{{ end }} - - +
+
+
+
+ {{ partial "sidebar" . }} +
+
+ {{ block "main" . }}{{ end }} +
+
+
+
- - - - {{- block "scripts" . }}{{- end }} + + + + + {{- block "scripts" . }}{{- end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 414522b..1a46806 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,14 +1,3 @@ -{{- define "main" }} -
-
-
-

- Upcoming news... -

-

- We'll have more information available soon! -

-
-
-
-{{- end }} \ No newline at end of file +{{ define "main" }} +

No articles have been written yet, check back soon!

+{{ end }} \ No newline at end of file diff --git a/layouts/partials/header_homepage.html b/layouts/partials/header_homepage.html index 6f8ed53..f3b998b 100644 --- a/layouts/partials/header_homepage.html +++ b/layouts/partials/header_homepage.html @@ -1,25 +1 @@ -
- -
- -
-
-
-

{{ .Site.Title }}

-

{{ .Site.Params.Tagline }}

- - - - - Source Code - -
-
\ No newline at end of file +Cannot find override file: `./layouts/partials/header_homepage.html` \ No newline at end of file diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html new file mode 100644 index 0000000..b48866d --- /dev/null +++ b/layouts/partials/navbar.html @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html new file mode 100644 index 0000000..1417dcd --- /dev/null +++ b/layouts/partials/sidebar.html @@ -0,0 +1 @@ +Cannot find override file: `./layouts/partials/sidebar.html` \ No newline at end of file