aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-13 03:12:43 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-13 03:14:55 +0200
commit82fdcd672008651dd76f8b1f506f534145d5cc7a (patch)
treed1678ccb7345170866a7dba2feed59b70ac6ea89 /layouts/_default/single.html
parent4bbc7b9a7de0002173f38918cfd69a6e64d86e00 (diff)
downloadhugo-minimalist-theme-82fdcd672008651dd76f8b1f506f534145d5cc7a.tar.gz
hugo-minimalist-theme-82fdcd672008651dd76f8b1f506f534145d5cc7a.tar.bz2
hugo-minimalist-theme-82fdcd672008651dd76f8b1f506f534145d5cc7a.zip
Striped sections
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 }}