From b0192b2ec2a9cbdd5480936f034b41888fe23956 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 6 Jan 2018 01:54:19 +1100 Subject: [PATCH] Implement hero layout, better content layouts (#1) Implement hero layout, better content layouts --- layouts/_default/baseof.html | 30 +++++++++++++++++++----------- layouts/_default/single.html | 10 ++++++++-- layouts/_default/summary.html | 23 +++++++++++++++++++++++ layouts/index.html | 8 +++++++- layouts/partials/nav_contents.html | 1 + layouts/partials/navbar.html | 17 +++-------------- 6 files changed, 61 insertions(+), 28 deletions(-) create mode 100644 layouts/_default/summary.html create mode 100644 layouts/partials/nav_contents.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a532c5e..63f55a0 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,6 @@ - + @@ -18,36 +19,43 @@ {{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}} + {{ if eq (getenv "HUGO_ENV") "PRD" }} {{ else }} {{ end }} + {{- if .IsHome }} + {{ partial "header_homepage" . }} + {{- else }} {{ partial "navbar" . }} - - {{- if .IsHome }} {{ partial "header_homepage" . }} {{- end }} + {{- end }} -
+
-
- {{ partial "sidebar" . }} -
-
+
{{ block "main" . }}{{ end }}
+
+ {{ partial "sidebar" . }} +
-