Skip to content

Commit ddc28f4

Browse files
committed
correction: Add a shortcode for a element highlighting a correction (#130)
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 <maddock.evan@vivaldi.net>
1 parent df83c44 commit ddc28f4

4 files changed

Lines changed: 30 additions & 3 deletions

File tree

content/blog/2025/11/solus-4.8-released/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ Head on over to our [Download](/download) page to download the edition you wish
136136

137137
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.
138138

139-
*A previous version of this post listed an incorrect version of LibreOffice. It has been corrected to 25.2.6.*
139+
{{< correction date="29 Nov 2025" >}}
140+
A previous version of this post listed an incorrect version of LibreOffice. It has been corrected to 25.2.6.
141+
{{< /correction >}}
140142

141-
*A previous version of this post stated that Plasma 6.8 would release in early 2027. It has been corrected to say October 2026.*
143+
{{< correction date="29 Nov 2025" >}}
144+
A previous version of this post stated that Plasma 6.8 would release in early 2027. It has been corrected to say October 2026.
145+
{{< /correction >}}

content/blog/2026/04/solus-4.9-released/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,6 @@ Head on over to our [Download](/download) page to download the edition you wish
120120

121121
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.
122122

123-
*A previous version of this post was missing a warning about Budgie and X11. A warning has been added.*
123+
{{< correction date="18 Apr 2026" >}}
124+
A previous version of this post was missing a warning about Budgie and X11. A warning has been added.
125+
{{< /correction >}}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- $content := .content -}}
2+
{{- $date := .date | default .Lastmod -}}
3+
4+
{{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" $date) }}
5+
6+
<div class="bg-neutral-100 dark:bg-neutral-800 font-[400] text-sm text-neutral-600 dark:text-neutral-400">
7+
<h5 class="pl-4 pr-4 pt-4 pb-1">Correction
8+
<time class="block mt-6 text-base/4" datetime={{ $datetime }}>{{ partial "utils/format-date" $date }}</span>
9+
</h5>
10+
<p class="not-prose mt-2 pl-4 pr-4 pb-4">{{ $content }}</p>
11+
</div>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{- $content := .InnerDeindent | markdownify -}}
2+
{{- $date := .Get "date" | default "" -}}
3+
4+
{{- $parsedDate := time.AsTime $date -}}
5+
6+
{{- partial "components/correction.html" (dict
7+
"date" $parsedDate
8+
"content" $content
9+
)
10+
-}}

0 commit comments

Comments
 (0)