From b665039b0f414fe57e55487c4fd91f2cb68debb7 Mon Sep 17 00:00:00 2001 From: Li-Wen Yip Date: Wed, 8 Mar 2017 21:56:10 +0000 Subject: [PATCH] Fix issues with bigimgs - Fixed issue where bigimg doesn't work if only one bigimg is defined (changed `if isset .Params.bigimg 1` to `if isset .Params.bigimg 0`) - Fixed issue where title and subtitle disappear when screen width is less than 365px --- layouts/index.html | 23 ++++++++++++++++++++--- layouts/partials/header_wp.html | 11 ++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index ce7b660..aaae398 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,12 +7,13 @@ {{ partial "nav.html" . }} - {{ if isset .Site.Params.bigimg 1 }} + {{ if isset .Site.Params.bigimg 0 }}
{{ end }} -
-
+
+ {{ if isset .Site.Params.bigimg 0 }} +
@@ -28,6 +29,22 @@
+ {{end}} +
+
+
+
+
+

{{.Site.Title}}

+ {{if .Site.Params.subtitle}} +
+ {{.Site.Params.subtitle}} + {{end}} +
+
+
+
+
diff --git a/layouts/partials/header_wp.html b/layouts/partials/header_wp.html index 8f395bf..0a1b226 100644 --- a/layouts/partials/header_wp.html +++ b/layouts/partials/header_wp.html @@ -1,13 +1,18 @@ {{ if or .Params.bigimg .Title }} - {{ if isset .Params.bigimg 1 }} + {{ if isset .Params.bigimg 0 }}
{{ end }} -
-
+
+ {{ if isset .Params.bigimg 0 }} +
{{ partial "header.html" . }}
+ {{end}} +
+ {{ partial "header.html" . }} +
{{ else }}