improve conditional
This commit is contained in:
parent
ea887e9313
commit
480ea34d22
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue