diff options
author | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 19:42:49 +0200 |
---|---|---|
committer | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 19:42:49 +0200 |
commit | 8c1cb6a102110a7a10e743c458293723c17558b9 (patch) | |
tree | 6e330550a21efcca208bc6f6eb60069d6a8aba04 /layouts/_default/single.html | |
parent | 56a0d30ba4263e161979991472489fdc3a3a921f (diff) | |
download | hugo-minimalist-theme-8c1cb6a102110a7a10e743c458293723c17558b9.tar.gz hugo-minimalist-theme-8c1cb6a102110a7a10e743c458293723c17558b9.tar.bz2 hugo-minimalist-theme-8c1cb6a102110a7a10e743c458293723c17558b9.zip |
Fix background style changes
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 29e94b3..2d1cd68 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,9 @@ {{ define "main" }} <article> - <div id="post-header-cover" class="w-100 vh-50 dt bg-center cover bg-gray" - style="background-image:url({{ .Params.coverimage }})"> + <div id="post-header-cover" class="w-100 dt bg-center cover bg-black-30" + {{ with .Params.coverimage }} + style="background-image:url({{ . }})" + {{ end }} > <header class="dt pa2 pa5-ns mw7 center post-header white"> <h1 class="f1 lh-title"> {{ .Title }}</h1> @@ -10,12 +12,12 @@ </header> </div> - <div id="content" class="mw7 center"> - <div class="f4 lh-copy pv4 ph2 black-70"> + <div id="content" class="bg-near-white"> + <div class="f4 mw7 center lh-copy pv4 ph2 black-70"> {{ .Content }} </div> - <footer class="ph3 pb2 bt bb cf b--black-50"> + <footer class="mw7 center ph3 pb2 bt bb cf b--black-50"> {{ with .Params.tags }} <div class="fl-ns w-50-ns mb2"> <h5 class="f5 ttu black-60">Tagged in</h5> @@ -51,12 +53,11 @@ </a> {{ end}} </div> - - </div> {{ if not (eq .Params.comments false) }} <div class="mw7 center mv4 pa2"> {{ template "_internal/disqus.html" . }} </div> {{ end }} + </div> </article> {{ end }} |