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/page-header.html | 4 ++--
1 files changed, 2 insertions(+), 2 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" . }}
<div class="tc-l pv6 ph3 ph4-ns">
<h1 class="f2 f1-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 measure-wide-l center lh-copy mt3 mb4">
- {{ .Params.description }}
+ {{ . }}
</h2>
{{ end }}
</div>
--
Gitblit v1.10.0