From 2893870a57cab574411d0c36955958f9e0f3b812 Mon Sep 17 00:00:00 2001 From: Evan Maddock Date: Mon, 29 Jun 2026 18:37:41 -0400 Subject: [PATCH] correction: Add a shortcode for a element highlighting a correction Sometimes, it is necessary to update a blog post with some sort of correction to the content. In the interests of transparency, we want to show in the post that such a correction has been made, and why. This new shortcode makes doing this really easy, and consistent. Signed-off-by: Evan Maddock --- content/blog/2025/11/solus-4.8-released/index.md | 8 ++++++-- content/blog/2026/04/solus-4.9-released/index.md | 4 +++- layouts/_partials/components/correction.html | 11 +++++++++++ layouts/_shortcodes/correction.html | 10 ++++++++++ 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 layouts/_partials/components/correction.html create mode 100644 layouts/_shortcodes/correction.html diff --git a/content/blog/2025/11/solus-4.8-released/index.md b/content/blog/2025/11/solus-4.8-released/index.md index 177e8d77..0cafde78 100644 --- a/content/blog/2025/11/solus-4.8-released/index.md +++ b/content/blog/2025/11/solus-4.8-released/index.md @@ -136,6 +136,10 @@ Head on over to our [Download](/download) page to download the edition you wish We want to give a shout-out to all of our supporters on [OpenCollective](https://opencollective.com/getsolus). We are grateful to all of our backers who fund our work, and help us bring this Linux distribution to everyone. Solus could not operate without your help. Your donations pay for our server infrastructure, services like email, and our contributors for long-term and complex package and development work. You can [become a backer](https://opencollective.com/getsolus#category-CONTRIBUTE) today for as little as $1 a month. Thank you. -*A previous version of this post listed an incorrect version of LibreOffice. It has been corrected to 25.2.6.* +{{< correction date="29 Nov 2025" >}} + A previous version of this post listed an incorrect version of LibreOffice. It has been corrected to 25.2.6. +{{< /correction >}} -*A previous version of this post stated that Plasma 6.8 would release in early 2027. It has been corrected to say October 2026.* +{{< correction date="29 Nov 2025" >}} + A previous version of this post stated that Plasma 6.8 would release in early 2027. It has been corrected to say October 2026. +{{< /correction >}} diff --git a/content/blog/2026/04/solus-4.9-released/index.md b/content/blog/2026/04/solus-4.9-released/index.md index 7287d8d4..6424ed09 100644 --- a/content/blog/2026/04/solus-4.9-released/index.md +++ b/content/blog/2026/04/solus-4.9-released/index.md @@ -120,4 +120,6 @@ Head on over to our [Download](/download) page to download the edition you wish We want to give a shout-out to all of our supporters on [OpenCollective](https://opencollective.com/getsolus). We are grateful to all of our backers who fund our work, and help us bring this Linux distribution to everyone. Solus could not operate without your help. Your donations pay for our server infrastructure and services like email. They also help reimburse contributors for long-term and complex package and development work. You can [become a backer](https://opencollective.com/getsolus#category-CONTRIBUTE) today for as little as $1 a month. Thank you. -*A previous version of this post was missing a warning about Budgie and X11. A warning has been added.* +{{< correction date="18 Apr 2026" >}} + A previous version of this post was missing a warning about Budgie and X11. A warning has been added. +{{< /correction >}} diff --git a/layouts/_partials/components/correction.html b/layouts/_partials/components/correction.html new file mode 100644 index 00000000..ec8afa05 --- /dev/null +++ b/layouts/_partials/components/correction.html @@ -0,0 +1,11 @@ +{{- $content := .content -}} +{{- $date := .date | default .Lastmod -}} + +{{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" $date) }} + +
+
Correction +
+

{{ $content }}

+
diff --git a/layouts/_shortcodes/correction.html b/layouts/_shortcodes/correction.html new file mode 100644 index 00000000..8fbf48e2 --- /dev/null +++ b/layouts/_shortcodes/correction.html @@ -0,0 +1,10 @@ +{{- $content := .InnerDeindent | markdownify -}} +{{- $date := .Get "date" | default "" -}} + +{{- $parsedDate := time.AsTime $date -}} + +{{- partial "components/correction.html" (dict + "date" $parsedDate + "content" $content + ) +-}}