Merge all writing layouts into a single one

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2026-04-19 00:17:33 -07:00
parent 4a29854f7b
commit 73f8c787c9
10 changed files with 18 additions and 52 deletions

View File

@@ -1,8 +1,11 @@
---
title: "On Spiders"
date: 2026-03-22T01:03:00-05:00
type: onspiders
type: writing
description: "Whenever I stay still, I feel the spiders weave their webs around me."
custom_css:
- style.scss
body_start_partial: "spiderweb.html"
---
```

View File

@@ -1,8 +1,10 @@
---
title: "Persistence of Vision"
date: 2026-04-18T23:26:00-07:00
type: spirits
type: writing
description: "Humid air swirls with colorful spirits."
custom_css:
- style.scss
---
Humid air swirls with colorful spirits. They trace its invisible currents

View File

@@ -1,8 +1,10 @@
---
title: "Untitled Short Story"
date: 2024-08-01T20:31:18-07:00
type: thevoid
type: writing
description: "The Everpresent Void was first discovered at a children's birthday party."
custom_css:
- style.scss
---
> I'm losing my edge to the art-school Brooklynites in little jackets and\

View File

@@ -1,25 +0,0 @@
{{- /* Note: changing the baseof template because the title, tags, etc. of a regular post are still valid. */ -}}
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{- partial "head.html" . -}}
<body>
{{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $writingcss.Permalink }}">
{{ $spidercss := resources.Get "scss/onspiders.scss" | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $spidercss.Permalink }}">
<svg class="spiderweb" viewBox="0 0 197.21727 106.16592">
<use href="{{ (resources.Get "svg/spiderweb.svg").Permalink }}#mainlayer"></use>
</svg>
{{- partial "header.html" . -}}
<div class="container"><hr class="header-divider"></div>
<main class="container">
{{- if .Draft -}}
{{- partial "warning.html" (i18n "postDraft") -}}
{{- end -}}
{{- block "main" . }}{{- end }}
</main>
{{- block "after" . }}{{- end }}
</body>
</html>

View File

@@ -0,0 +1,3 @@
<svg class="spiderweb" viewBox="0 0 197.21727 106.16592">
<use href="{{ (resources.Get "svg/spiderweb.svg").Permalink }}#mainlayer"></use>
</svg>

After

Width:  |  Height:  |  Size: 150 B

View File

@@ -1,22 +0,0 @@
{{- /* Note: changing the baseof template because the title, tags, etc. of a regular post are still valid. */ -}}
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{- partial "head.html" . -}}
<body>
{{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $writingcss.Permalink }}">
{{ $spiritscss := resources.Get "scss/spirits.scss" | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $spiritscss.Permalink }}">
{{- partial "header.html" . -}}
<div class="container"><hr class="header-divider"></div>
<main class="container">
{{- if .Draft -}}
{{- partial "warning.html" (i18n "postDraft") -}}
{{- end -}}
{{- block "main" . }}{{- end }}
</main>
{{- block "after" . }}{{- end }}
</body>
</html>

View File

@@ -3,10 +3,13 @@
<html lang="{{ .Site.Language.Lang }}">
{{- partial "head.html" . -}}
<body>
{{ with .Params.body_start_partial }}
{{ partial . $ }}
{{ end }}
{{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $writingcss.Permalink }}">
{{ $voidcss := resources.Get "scss/thevoid.scss" | css.Sass | resources.Minify }}
<link rel="stylesheet" href="{{ $voidcss.Permalink }}">
{{- partial "header.html" . -}}
<div class="container"><hr class="header-divider"></div>
<main class="container">