{{ .Content }} diff --git a/layouts/photos/single.html b/layouts/photos/single.html index a69d681..9ed20a8 100644 --- a/layouts/photos/single.html +++ b/layouts/photos/single.html @@ -5,15 +5,9 @@ {{ define "main" }} -{{ if .Title }} -
- {{ partial "development/draft_tag.html" . }} -
-

{{ .Title }}

- -
-
-{{ end }} +{{- if .Title -}} + {{ partial "content_header.html" . }} +{{- end -}} {{ $photos := .Resources.ByType "image" }} {{ if eq (len $photos) 0 }} diff --git a/static/styles/root.css b/static/styles/root.css index 4e8ca1f..4e6ad95 100644 --- a/static/styles/root.css +++ b/static/styles/root.css @@ -40,6 +40,7 @@ --body-code-background-color: rgb(var(--super-lt-gray)); --heading-color: rgb(var(--black)); + --header-series-arrow-foreground-color: rgb(var(--sub-dk-gray)); --html-background-color: rgb(var(--white)); --html-color: rgba(var(--black), 0.8); @@ -71,6 +72,7 @@ --body-code-background-color: rgb(var(--dk-gray)); --heading-color: rgb(var(--white)); + --header-series-arrow-foreground-color: rgb(var(--super-dk-gray)); --html-background-color: rgb(var(--black)); --html-color: rgba(var(--white), 0.8); @@ -345,6 +347,10 @@ main { width: 100%; } +main > header { + margin-bottom: var(--body-item-spacing); +} + main > :first-child { margin-block-start: 0; } main > :last-child { margin-block-end: 0; } @@ -394,6 +400,18 @@ ol ol { margin-inline-start: var(--body-item-spacing); } +header > span.series { + font-size: 1.75rem; + letter-spacing: 1px; + margin-inline-start: 0.5em; +} + +header > span.series::before { + color: var(--header-series-arrow-foreground-color); + content: "↳"; + margin-inline-end: 0.25em; +} + .post-list { list-style: none; margin: 0; @@ -423,7 +441,6 @@ ol ol { display: flex; flex-wrap: wrap; gap: 0 4rem; - margin-bottom: var(--body-item-spacing); } .post-title h1 {