diff --git a/layouts/index.html b/layouts/index.html index 873d35e..de53e8d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,9 +2,13 @@ {{ partial "head.html" . }} -{{ partial "navbar.html" . }} +{{ if ne .Site.Params.navbar.hidden true }} + {{ partial "navbar.html" . }} +{{ end }}
+{{ if ne .Site.Params.hero.custom_hero true }} {{ partial "hero.html" . }} +{{ end }} {{ partial "sections.html" . }}
{{ partial "js.html" . }} diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index 5fa31d0..eb86ba3 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -56,15 +56,19 @@ {{ end }} {{ with .font }} - #hero .text { font-family:{{ . }},Helvetica,Arial,sans-serif;} + #hero > .section__container { font-family:{{ . }},Helvetica,Arial,sans-serif;} {{ end }} {{ with .color }} - #hero > .text { color: {{ . }}; } + #hero { color: {{ . }}; } + {{ end }} + + {{ with .bg_color }} + #hero { background-color: {{ . }}; } {{ end }} {{ if and ( .text_outline ) ( .text_shadow ) }} - #hero > .text { + #hero > .section__container { text-shadow: -2px -2px 0 {{ .text_outline }}, 2px -2px 0 {{ .text_outline }}, @@ -75,7 +79,7 @@ {{ else }} {{ with .text_outline }} - #hero > .text { + #hero > .section__container { text-shadow: -2px -2px 0 {{ . }}, 2px -2px 0 {{ . }}, @@ -85,7 +89,7 @@ {{ end }} {{ with .text_shadow }} - #hero > .text { + #hero > .section__container { text-shadow: -7px -3px 0 {{ . }} } @@ -131,11 +135,11 @@ {{ end }} {{ with .divider_thickness }} - hr { border-width: {{ . }}px; } + #hero hr { border-width: {{ . }}px; } {{ end }} {{ with .divider_color }} - hr { border-top-color: {{ . }}; } + #hero hr { border-top-color: {{ . }}; } {{ end }} {{ end }} /* end hero */ @@ -152,7 +156,7 @@ {{ end }} {{ with .bullet_icon }} - .section__content ul > li::before { + .section__content :not(.highlight) ul > li::before { content: "{{ . }}"; } diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index 9076c77..afc7281 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -1,5 +1,6 @@ -
-
+
+
+
{{ with .Site.Params.hero }} {{ with .headline }}

{{ . }}

{{ end }} {{ with .subheadline }}

{{ . }}

{{ end }} @@ -9,6 +10,6 @@

{{ . }}

{{ end }} {{ end }} -
- +
+
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 3586ee5..0f3db17 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -11,7 +11,7 @@ {{ if ne .Params.navbar false }} {{ if ne .Params.hidden true }} @@ -21,3 +21,4 @@ + diff --git a/layouts/partials/sections.html b/layouts/partials/sections.html index 4e41619..d4f372f 100644 --- a/layouts/partials/sections.html +++ b/layouts/partials/sections.html @@ -1,7 +1,6 @@ -{{ $parity := "odd" }} {{ range $i, $e := .Data.Pages }} -{{ if ne .Params.hidden true }} -