From 4825a52edd045fbf92b3a9cff330c8365da846a7 Mon Sep 17 00:00:00 2001 From: lew Date: Sat, 2 May 2026 18:57:48 +0100 Subject: [PATCH] added a shortcode for notes/meta info, and a Reading section --- content/blog/contact.md | 4 +-- content/reading/_index.md | 4 +++ content/reading/dream_of_a_ridiculous_man.md | 16 +++++++++++ content/reading/gentle_creature.md | 5 ++++ content/{blog => reading}/th.md | 2 +- content/reading/white_nights.md | 15 ++++++++++ static/style.css | 29 ++++++++++++++++++++ templates/base.html | 6 ++-- templates/blog.html | 12 -------- templates/index.html | 10 ++++++- templates/shortcodes/h.html | 2 ++ 11 files changed, 86 insertions(+), 19 deletions(-) create mode 100644 content/reading/_index.md create mode 100644 content/reading/dream_of_a_ridiculous_man.md create mode 100644 content/reading/gentle_creature.md rename content/{blog => reading}/th.md (93%) create mode 100644 content/reading/white_nights.md delete mode 100644 templates/blog.html create mode 100644 templates/shortcodes/h.html diff --git a/content/blog/contact.md b/content/blog/contact.md index 3cc4764..743add2 100644 --- a/content/blog/contact.md +++ b/content/blog/contact.md @@ -3,6 +3,6 @@ title = "Contacting me" date = 2021-02-11 +++ -If you need to get in touch regarding work I've completed for you in the past, use the email I gave to you at the time, or if that's not possible, email previous-work@ily.rs. +If you need to get in touch regarding work I've completed for you in the past, use the email I gave to you at the time, or if that's not possible, email past-work@wynne.rs. -If you want to get in touch for reasons unrelated to work, use l@ily.rs. I'm generally happy chatting. +If you want to get in touch for reasons unrelated to work, use chat@wynne.rs. I'm generally happy chatting, and get back to my emails everyday. diff --git a/content/reading/_index.md b/content/reading/_index.md new file mode 100644 index 0000000..7216ade --- /dev/null +++ b/content/reading/_index.md @@ -0,0 +1,4 @@ ++++ +sort_by = "date" +render = false ++++ diff --git a/content/reading/dream_of_a_ridiculous_man.md b/content/reading/dream_of_a_ridiculous_man.md new file mode 100644 index 0000000..e430673 --- /dev/null +++ b/content/reading/dream_of_a_ridiculous_man.md @@ -0,0 +1,16 @@ ++++ +title = "The Dream of a Ridiculous Man (1877) by Fyodor Dostoevsky" +date = 2026-05-02 +draft = true ++++ +
+ +{% h(at="01") %} +I am a ridiculous man. Nowadays they call me mad. +{% end %} + +{% h(at="02") %} +All of a sudden, I realised that it *would not matter* to me whether the world existed or whether there was nothing at all anywhere. I began to intuit and sense with all my being, that *there was nothing around me*. [...] It was then that I suddenly stopped being angry at othre people and almost ceased to notice them. +{% end %} + +
diff --git a/content/reading/gentle_creature.md b/content/reading/gentle_creature.md new file mode 100644 index 0000000..fceee93 --- /dev/null +++ b/content/reading/gentle_creature.md @@ -0,0 +1,5 @@ ++++ +title = "A Gentle Creature (1876) by Fyodor Dostoevsky" +date = 2026-05-02 +draft = true ++++ diff --git a/content/blog/th.md b/content/reading/th.md similarity index 93% rename from content/blog/th.md rename to content/reading/th.md index 699f63e..06b551b 100644 --- a/content/blog/th.md +++ b/content/reading/th.md @@ -1,5 +1,5 @@ +++ -title = "th" +title = "th (2024) by me" date = 2024-04-21 +++ diff --git a/content/reading/white_nights.md b/content/reading/white_nights.md new file mode 100644 index 0000000..1629f48 --- /dev/null +++ b/content/reading/white_nights.md @@ -0,0 +1,15 @@ ++++ +title = "White Nights (1848) by Fyodor Dostoevsky" +date = 2026-05-02 +draft = true ++++ + +
+ +{{ h(at="Dreamer", body="My God, a whole minute of bliss! Is that really so little for the whole of a man's life?") }} + +{% h(at="Nastenka") %} +Listen, why aren't we all like brothers and sisters? Why is even the best of men always seeming to hide something from the others, and to keep something back from them? +{% end %} + +
diff --git a/static/style.css b/static/style.css index e92399d..99d3e36 100644 --- a/static/style.css +++ b/static/style.css @@ -1,3 +1,7 @@ +:root { + --muted: #666; +} + body { max-width: 70ch; line-height: 1.3; @@ -59,3 +63,28 @@ code { .anchor:hover { opacity: 1; } + +.muted { + color: var(--muted); +} + +.notes { + display: grid; + grid-template-columns: minmax(2.5rem, min-content) 1fr; + gap: 0.5rem 0.75rem; + margin: 1rem 0; +} + +.notes .meta { + white-space: nowrap; + font-variant-numeric: tabular-nums; + color: var(--muted); +} + +.notes p { margin: 0; } +.notes p + p { margin-top: 0.5rem; } + +.notes--dialogue .meta { + text-align: right; + font-style: italic; +} diff --git a/templates/base.html b/templates/base.html index a36adde..c7a58d8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,10 +11,10 @@ {% block content %}{% endblock %} diff --git a/templates/blog.html b/templates/blog.html deleted file mode 100644 index bd88ae2..0000000 --- a/templates/blog.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "base.html" %} - -{% block title %}ily blog{% endblock %} - -{% block content %} -

{{ section.title }}

- -{% endblock %} diff --git a/templates/index.html b/templates/index.html index 0046562..28e650f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,10 +4,18 @@ {% block content %} -

+

This site was once more complicated, but I've stripped it down to bare essentials.

{% set blog = get_section(path="blog/_index.md") %} {% for post in blog.pages %} {{ post.date }} {{ post.title }}
{% endfor %} + +

Reading

+ +{% set reading = get_section(path="reading/_index.md") %} +{% for post in reading.pages %} +{{ post.date}} {{ post.title }}
+{% endfor %} + {% endblock %} diff --git a/templates/shortcodes/h.html b/templates/shortcodes/h.html new file mode 100644 index 0000000..93aea11 --- /dev/null +++ b/templates/shortcodes/h.html @@ -0,0 +1,2 @@ +
{{ at }}
+
{{ body | markdown | safe }}