From ac3804530c9307687240b91bfa4dfe06a6222c00 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 18 Apr 2026 23:48:09 -0700 Subject: [PATCH] Add custom style for spirits. --- assets/scss/spirits.scss | 25 +++++++++++++++++++++++++ content/writing/spirits/index.md | 3 ++- layouts/spirits/baseof.html | 22 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 assets/scss/spirits.scss create mode 100644 layouts/spirits/baseof.html diff --git a/assets/scss/spirits.scss b/assets/scss/spirits.scss new file mode 100644 index 0000000..59a81d3 --- /dev/null +++ b/assets/scss/spirits.scss @@ -0,0 +1,25 @@ +$color-muted-plum: #3d2b3d; +$color-ashy-orange: #4a3428; +$color-storm: darken(#1e2a3d, 5%); + +html { + background-color: $color-storm; +} + +body { + background-image: linear-gradient( + 180deg, + $color-storm 0%, + $color-muted-plum 5%, + $color-ashy-orange 15%, + $color-storm 100%, + ); +} + +code { + background: none; + border: none; + padding: 0; + font-family: serif; + font-variant-caps: small-caps; +} diff --git a/content/writing/spirits/index.md b/content/writing/spirits/index.md index fbec9bd..1c98e15 100644 --- a/content/writing/spirits/index.md +++ b/content/writing/spirits/index.md @@ -1,7 +1,8 @@ --- title: "Persistence of Vision" date: 2026-04-18T23:26:00-07:00 -type: thevoid +type: spirits +description: "Humid air swirls with colorful spirits." --- Humid air swirls with colorful spirits. They trace its invisible currents diff --git a/layouts/spirits/baseof.html b/layouts/spirits/baseof.html new file mode 100644 index 0000000..1544a86 --- /dev/null +++ b/layouts/spirits/baseof.html @@ -0,0 +1,22 @@ +{{- /* Note: changing the baseof template because the title, tags, etc. of a regular post are still valid. */ -}} + + + {{- partial "head.html" . -}} + + {{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }} + + {{ $spiritscss := resources.Get "scss/spirits.scss" | css.Sass | resources.Minify }} + + {{- partial "header.html" . -}} +

+
+ + {{- if .Draft -}} + {{- partial "warning.html" (i18n "postDraft") -}} + {{- end -}} + + {{- block "main" . }}{{- end }} +
+ {{- block "after" . }}{{- end }} + +