From 480ea34d22d23ff1ad6cbd18939c08d0da747a85 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Sat, 15 Apr 2017 09:04:44 -0400 Subject: [PATCH] improve conditional --- layouts/partials/page-header.html | 4 ++-- layouts/partials/site-header.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 347cd7d..08c4923 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -4,9 +4,9 @@ {{ partial "site-navigation.html" . }}

{{ .Title | default .Site.Title }}

- {{ if .Params.description }} + {{ with .Params.description }}

- {{ .Params.description }} + {{ . }}

{{ end }}
diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index b8ebba1..65f1c8c 100755 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -6,9 +6,9 @@

{{ .Title | default .Site.Title }}

- {{ if .Params.description }} + {{ with .Params.description }}

- {{ .Params.description }} + {{ . }}

{{ end }} @@ -22,9 +22,9 @@

{{ .Title | default .Site.Title }}

- {{ if .Params.description }} + {{ with .Params.description }}

- {{ .Params.description }} + {{ . }}

{{ end }}