aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-20 16:06:53 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-20 16:32:48 +0200
commit19b9131073d1da80cc0193af397d5a1ab267f45d (patch)
tree6b248ec4b9a279c8d381cf5b2000c1f532652e82 /layouts/_default
parent0b60f218c1cf0aac57473e0643aedfad1698b5e4 (diff)
downloadhugo-minimalist-theme-19b9131073d1da80cc0193af397d5a1ab267f45d.tar.gz
hugo-minimalist-theme-19b9131073d1da80cc0193af397d5a1ab267f45d.tar.bz2
hugo-minimalist-theme-19b9131073d1da80cc0193af397d5a1ab267f45d.zip
Project single page
Diffstat (limited to 'layouts/_default')
-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 }}