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.html35
1 files changed, 2 insertions, 33 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 076e4e7..0dd0817 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -8,43 +8,12 @@
<h3 class="f3 baskerville mv3 pa1">{{ . }}</h3>
{{ end }}
+ {{ partial "meta_links.html" . }}
{{ if in (slice "post" "talk" "publication") .Section }}
{{ partial "metadata.html" . }}
{{ end }}
- {{ $image := "" }}
- {{ if (.Resources.ByType "image").GetMatch "*featured*" }}
- {{ $image = (.Resources.ByType "image").GetMatch "*featured*" }}
- {{ else if resources.Get (index .Params.images 0) }}
- {{ $image = resources.Get (index .Params.images 0) }}
- {{ end }}
- {{ with $image }}
- {{ if ne $image.MediaType.SubType "svg" }}
- {{ $image := .Fit (default "400x400" $.Params.image_size) }}
- {{ end }}
- <div class="tc">
- <div class="relative dib">
- <img
- src="{{ if ne .MediaType.SubType "svg" }}
- {{ $image := .Fit (default "400x400" $.Params.image_size) }}
- {{ $image.RelPermalink }}
- {{ else }}
- {{ $image.RelPermalink }}
- {{ end }}"
- class="ma0"
- alt="{{ .Title }}"
- />
- {{ with $.Params.caption }}
- <a
- href="{{ .url }}"
- class="link near-white db absolute bottom-0 right-0 pa2 bg-black-30 br2"
- >
- {{ .text }}
- </a>
- {{ end }}
- </div>
- </div>
- {{ end }}
+ {{ partial "leading_image.html" . }}
</header>
<div class="main-content mw7 center lh-copy f5 f4-ns ph1">
{{ .Content }}