aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html69
1 files changed, 38 insertions, 31 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 77b7f97..bcd733b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,36 +1,43 @@
{{ define "main" }}
- <header>
- <h2 class="baskerville f2 lh-title mv3">
- {{ .Title }}
- </h2>
+ <header class="mw7 center">
+ <h2 class="baskerville f2 lh-title mv3">
+ {{ .Title }}
+ </h2>
- {{ with .Params.subtitle }}
- <h3 class="f3 baskerville mv3">{{ . }}</h3>
- {{end}}
+ {{ with .Params.subtitle }}
+ <h3 class="f3 baskerville mv3">{{ . }}</h3>
+ {{ end }}
- {{ with resources.Get (index .Params.images 0) }}
- {{ $image := .Fill (default "400x400" $.Params.image_size) }}
- <div class="relative">
- <img src="{{ $image.RelPermalink }}" class="db center" alt= "{{ .Title }}">
- {{ with $.Params.caption }}
- <a href="{{ .url }}" class="link near-white absolute bottom-0 right-0 pa2 bg-black-30 br2">
- {{ .text }}
- </a>
- {{ end }}
- </div>
- {{end}}
-
- {{ if isset .Params "metadata" }}
- {{ partial "metadata.html" . }}
+ {{ with resources.Get (index .Params.images 0) }}
+ {{ $image := .Fill (default "400x400" $.Params.image_size) }}
+ <div class="relative">
+ <img
+ src="{{ $image.RelPermalink }}"
+ class="db center"
+ alt="{{ .Title }}"
+ />
+ {{ with $.Params.caption }}
+ <a
+ href="{{ .url }}"
+ class="link near-white absolute bottom-0 right-0 pa2 bg-black-30 br2"
+ >
+ {{ .text }}
+ </a>
{{ end }}
- </header>
-<div class="main-content lh-copy f5 f4-ns">
-{{ .Content }}
-</div>
-<div class="f5 f4-ns lh-copy pv2">
-{{ if isset .Params "metadata" }}
-{{ partial "author_card" . }}
-{{ end }}
-{{ partial "post_pager" . }}
-</div>
+ </div>
+ {{ end }}
+
+ {{ if isset .Params "metadata" }}
+ {{ partial "metadata.html" . }}
+ {{ end }}
+ </header>
+ <div class="main-content mw7 center lh-copy f5 f4-ns">
+ {{ .Content }}
+ </div>
+ <div class="f5 f4-ns lh-copy pv2">
+ {{ if isset .Params "metadata" }}
+ {{ partial "author_card" . }}
+ {{ end }}
+ {{ partial "post_pager" . }}
+ </div>
{{ end }}