improve conditional

This commit is contained in:
Bud Parr 2017-04-15 09:04:44 -04:00
parent ea887e9313
commit 480ea34d22
No known key found for this signature in database
GPG key ID: ACA375160539D2B3
2 changed files with 6 additions and 6 deletions

View file

@ -4,9 +4,9 @@
{{ partial "site-navigation.html" . }} {{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns"> <div class="tc-l pv6 ph3 ph4-ns">
<h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1> <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"> <h2 class="fw1 f5 f3-l white-80 measure-wide-l center lh-copy mt3 mb4">
{{ .Params.description }} {{ . }}
</h2> </h2>
{{ end }} {{ end }}
</div> </div>

View file

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