From 1b0bd000beb22a32821261bf015e7b399d08bf5a Mon Sep 17 00:00:00 2001 From: yvovandoorn Date: Sun, 5 Jun 2016 11:57:04 +0200 Subject: [PATCH 1/2] Fix Params to be a lowercase; logic already existed --- themes/devopsdays-responsive/layouts/partials/head.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/themes/devopsdays-responsive/layouts/partials/head.html b/themes/devopsdays-responsive/layouts/partials/head.html index 90952a69636..95833c2f871 100644 --- a/themes/devopsdays-responsive/layouts/partials/head.html +++ b/themes/devopsdays-responsive/layouts/partials/head.html @@ -11,7 +11,11 @@ {{ if eq $url "/" }} {{ .Site.Title }} {{ else }} - {{ if .Params.Heading }} {{ .Params.Heading }} {{ else }} {{ .Title }} {{ end }} + {{ if .Params.heading }} + {{ .Params.heading }} + {{ else }} + {{ .Title }} + {{ end }} {{ end }} From 565df611cee2755c8c835986deb2dc4951e6d695 Mon Sep 17 00:00:00 2001 From: yvovandoorn Date: Sun, 5 Jun 2016 12:02:14 +0200 Subject: [PATCH 2/2] Compress the spacing a bit. Richard Hendricks would approve --- themes/devopsdays-responsive/layouts/partials/head.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/themes/devopsdays-responsive/layouts/partials/head.html b/themes/devopsdays-responsive/layouts/partials/head.html index 95833c2f871..b0d914b58aa 100644 --- a/themes/devopsdays-responsive/layouts/partials/head.html +++ b/themes/devopsdays-responsive/layouts/partials/head.html @@ -11,10 +11,8 @@ {{ if eq $url "/" }} {{ .Site.Title }} {{ else }} - {{ if .Params.heading }} - {{ .Params.heading }} - {{ else }} - {{ .Title }} + {{ if .Params.heading }} {{ .Params.heading }} + {{ else }} {{ .Title }} {{ end }} {{ end }}