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 | |
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')
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | layouts/_default/single.html | 15 | ||||
-rw-r--r-- | layouts/_default/summary.html | 2 |
3 files changed, 11 insertions, 9 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 134feff..85993a1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,8 @@ <!DOCTYPE html> <html> {{- partial "head.html" . -}} - <body class="bg-near-white sans-serif"> + <body class="bg-near-white sans-serif" + style="background:url('{{ .Site.Params.coverImage | absURL }}') fixed;"> {{- partial "header.html" . -}} {{- block "main" . }}{{- end }} {{- partial "footer.html" . -}} 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 }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 13c94e8..379694c 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,4 +1,4 @@ -<article class="bt bb b--black-10"> +<article class="bt bb b--black-10 mw7 center"> <a href='{{ .Permalink }}' class="db pv4 ph3 black no-underline dim"> <header> <h1 class="f2 lh-title black-90 "> |