Fixing reference to site description from the [params] section of the config.toml in the site-header.html document.

This commit is contained in:
Todd Meinershagen 2018-02-25 22:32:05 -06:00
parent d5b87cb15e
commit 601ccf45e1

View File

@ -1,4 +1,4 @@
{{ $featured_image := .Param "featured_image" | default "images/gohugo-default-sample-hero-image.jpg" }}
{{ $featured_image := .Param.featured_image | default "images/gohugo-default-sample-hero-image.jpg" }}
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
{{ $featured_image := (trim $featured_image "/") | absURL }}
@ -9,7 +9,7 @@
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
{{ .Title | default .Site.Title }}
</h1>
{{ with .Params.description }}
{{ with .Param.description }}
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3">
{{ . }}
</h2>
@ -25,7 +25,7 @@
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
{{ .Title | default .Site.Title }}
</h1>
{{ with .Params.description }}
{{ with .Param.description }}
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center lh-copy mt3 mb4">
{{ . }}
</h2>