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 | |
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')
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | layouts/_default/single.html | 15 | ||||
-rw-r--r-- | layouts/_default/summary.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 |
6 files changed, 16 insertions, 14 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 "> diff --git a/layouts/index.html b/layouts/index.html index 64edb68..30c38ae 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,5 @@ {{ define "main" }} -<div id="content" class="mw7 center"> +<div id="content" class="bg-near-white pb2"> <!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. --> {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b4df1c4..d4216d8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ -<footer id="footer" class="mw7 center mv3"> - <span class="db tc black-60"> +<footer id="footer" class="center pa2 bg-white-40"> + <span class="db tc black-80"> © {{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}. All Rights Reserved </span> </footer> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2a64490..61065b0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -37,14 +37,14 @@ </ul> </nav> -<nav class="dt w-100 border-box pa2"> +<nav class="dt w-100 border-box pa2 bg-white-40"> <a class="dtc dib v-mid dim " onclick="w3_open()"> <i class="fa fa-lg fa-bars black"></i> </a> <a href="{{ "/" | relLangURL }}" class="dtc v-mid link dim tc"> - <div class="f4 dib black-50">{{ .Site.Title }}</div> + <div class="f4 dib black-80 b">{{ .Site.Title }}</div> </a> {{ with ($.Scratch.Get "authorPicture") }} |