From 1071835cdc15e1285a2eb23a5ff2c5163cf281f1 Mon Sep 17 00:00:00 2001 From: lew Date: Wed, 29 Apr 2026 17:10:28 +0100 Subject: [PATCH] turns links and now/ into shortcodes --- content/links.md | 22 ++++++++++++++-------- content/now.md | 16 ++++++++-------- templates/shortcodes/link.html | 2 ++ templates/shortcodes/update.html | 2 ++ 4 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 templates/shortcodes/link.html create mode 100644 templates/shortcodes/update.html diff --git a/content/links.md b/content/links.md index cbf4d18..d5d61ef 100644 --- a/content/links.md +++ b/content/links.md @@ -5,15 +5,21 @@ path = "links" +++
-
ily.rs/status
-
Uptime for my services, and some others I track.
-
textonly.website
-
Collection of text-only personal sites
+{% link(href="https://ily.rs/status", title="ily.rs/status") %} +Uptime for my services, and some others I track. +{% end %} -
t0.vc
-
Tanner's site. My guestbook started off as a Rust port of his, and has gone on since to become more of its own thing.
+{% link(href="https://textonly.website", title="textonly.website") %} +Collection of text-only personal sites +{% end %} + +{% link(href="https://t0.vc", title="t0.vc") %} +Tanner's site. [My guestbook](/g) started off as a Rust port of [his](https://t0.vc/g/), and has gone on since to become more of its own thing. +{% end %} + +{% link(href="https://nownownow.com", title="nownownow.com") %} +Directory of /now pages +{% end %} -
nownownow.com
-
Directory of /now pages
diff --git a/content/now.md b/content/now.md index ca0688c..4395aab 100644 --- a/content/now.md +++ b/content/now.md @@ -5,13 +5,13 @@ path = "now" +++
-
28/04/26
-
- It's hot now and all my summer clothes are in storage. -
-
26/03/26
-
- Currently moving house. Offer accepted about 7 months ago. -
+{% update(date="28/04/26") %} +It's hot now and all my summer clothes are in storage. +{% end %} + +{% update(date="26/03/26") %} +Currently moving house. Offer accepted about 7 months ago. +{% end %} +
diff --git a/templates/shortcodes/link.html b/templates/shortcodes/link.html new file mode 100644 index 0000000..afce630 --- /dev/null +++ b/templates/shortcodes/link.html @@ -0,0 +1,2 @@ +
{{ title }}
+
{{ body | markdown(inline=true) | safe }}
diff --git a/templates/shortcodes/update.html b/templates/shortcodes/update.html new file mode 100644 index 0000000..cfcdd66 --- /dev/null +++ b/templates/shortcodes/update.html @@ -0,0 +1,2 @@ +
{{ date }}
+
{{ body | markdown(inline=true) | safe }}