WIP - Work In Progress in my blog

In my blog I prefer to share as soon as possible what I’m working on and what I’m writing about. When there is a small amount of value in what I’m writing, I don’t wait to end it to publish it. Obviously these WIP (Work In Progress) pieces could be incomplete (duh!), not entirely correct (waiting factchecking), and/or readable (waiting editing).

I use this Hugo shortcode

1
{{% wip %}}

to include WIP sections in my posts. This shortcode corresponds to this rendered section:

This is a Work In Progress (WIP).

I’ve also found a simple solution for a problem in the RSS feed: when I’m working on a WIP piece I dont’t want to send an RSS item for every single editing, but I would like to create a new RSS item after an important update. To do that, I use the guid tag (https://www.rssboard.org/rss-specification#ltguidgtSubelementOfLtitemgt) in the RSS Hugo template:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <item>
    <!-- ... -->
      {{ if (not (.Params.rssGuid)) }}
      <guid>{{ .Permalink }}</guid>
      {{ else }}
      <guid>{{ .Params.rssGuid }}</guid>
      {{ end }}
      <description>{{ .Content | html }}</description>
    </item>
    <!-- ... -->
  </channel>
</rss>

and in the frontmatter of the WIP post I write:

1
2
3
4
---
# ...
rssGuid: f0632b25-fb5c-404c-977c-c0e7f17f1afb
---

I use UUIDv4 for the rssGuid. When I want to send an update to my RSS feed followers, I generate a new UUID and remplace the value in the rssGuid parameter.

A double RSS item (Published writers' notebooks) in my feed after changing the guid value
A double RSS item (Published writers' notebooks) in my feed after changing the guid value
Tags: Blogging