diff options
author | Bud Parr <budparr@gmail.com> | 2017-04-20 15:20:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 15:20:37 +0300 |
commit | 3ab94d42f1a0d38620a621747cab74e9352b64ae (patch) | |
tree | 70049a4343778fb9237249cb8d5ee31ff5540cbe | |
parent | d351608a7717cc1d6a82d83baf0334ac19fffd7a (diff) | |
parent | 9543d907866234dc389d3f470610213a65cab840 (diff) |
Merge pull request #16 from budparr/dev1.0
tweak hero default behavior
-rw-r--r-- | layouts/partials/page-header.html | 2 | ||||
-rwxr-xr-x | layouts/partials/site-header.html | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index e6e7431..6d638d2 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -2,7 +2,7 @@ {{ 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 }} - <header class="cover bg-center" style="background-image: url('{{ $featured_image }}');"> + <header class="cover bg-top" style="background-image: url('{{ $featured_image }}');"> <div class="pb3-m pb6-l bg-black-60"> {{ partial "site-navigation.html" . }} <div class="tc-l pv6 ph3 ph4-ns"> diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index de2c3df..f715e00 100755 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -1,8 +1,8 @@ -{{ $featured_image := .Params.featured_image | default .Site.Params.featured_image }} +{{ $featured_image := .Params.featured_image }} {{ 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 }} - <header class="cover bg-center" style="background-image: url('{{ $featured_image }}');"> + <header class="cover bg-top" style="background-image: url('{{ $featured_image }}');"> <div class="bg-black-60"> {{ partial "site-navigation.html" .}} <div class="tc-l pv4 pv6-l ph3 ph4-ns"> @@ -10,7 +10,7 @@ {{ .Title | default .Site.Title }} </h1> {{ with .Params.description }} - <h2 class="fw1 f5 f3-l white-80 mt3"> + <h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3"> {{ . }} </h2> {{ end }} |