From 480ea34d22d23ff1ad6cbd18939c08d0da747a85 Mon Sep 17 00:00:00 2001
From: Bud Parr <budparr@gmail.com>
Date: Sat, 15 Apr 2017 13:04:44 +0000
Subject: [PATCH] improve conditional

---
 layouts/partials/site-header.html |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

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 @@
         <h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
           {{ .Title | default .Site.Title }}
         </h1>
-        {{ if .Params.description  }}
+        {{ with .Params.description }}
           <h2 class="fw1 f5 f3-l white-80 mt3">
-            {{ .Params.description  }}
+            {{ . }}
           </h2>
         {{ end }}
       </div>
@@ -22,9 +22,9 @@
         <h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
           {{ .Title | default .Site.Title }}
         </h1>
-        {{ if .Params.description  }}
+        {{ with .Params.description }}
           <h2 class="fw1 f5 f3-l white-80 measure-wide-l center lh-copy mt3 mb4">
-            {{ .Params.description  }}
+            {{ . }}
           </h2>
         {{ end }}
       </div>

--
Gitblit v1.10.0