aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html3
-rw-r--r--layouts/_default/single.html15
-rw-r--r--layouts/_default/summary.html2
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 ">