From cc128ec9960e5701350f05e302f68229b2528330 Mon Sep 17 00:00:00 2001 From: Devon Campbell Date: Sat, 29 Jul 2023 06:11:16 -0500 Subject: [PATCH] Make RSS item guid actually unique Was previously based on the item date, which fails to be unique when multiple items are committed at the same time. --- src/feed.njk | 4 ++-- src/feed/duplicate-rss-entries.md | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/feed/duplicate-rss-entries.md diff --git a/src/feed.njk b/src/feed.njk index fa36dae..6bc3871 100644 --- a/src/feed.njk +++ b/src/feed.njk @@ -30,8 +30,8 @@ metadata: {{ item.data.title }} {{ item.data.relativeUrl | absoluteUrl(metadata.url)}} - {{ item.date | stringToDate | dateToRfc822 }} - {{ item.date | stringToDate | dateToRfc822 }} + {{ item.page.date | stringToDate | dateToRfc822 }} + {{item.page.url}} {{ item.content | htmlToAbsoluteUrls(metadata.url) | convertYouTubeURLsToEmbeds }} diff --git a/src/feed/duplicate-rss-entries.md b/src/feed/duplicate-rss-entries.md new file mode 100644 index 0000000..9259959 --- /dev/null +++ b/src/feed/duplicate-rss-entries.md @@ -0,0 +1,11 @@ +--- +title: Apologies for the duplicate RSS entries +relativeUrl: /feed.xml +tags: feed +--- + +If you're an existing subscriber, you may have noticed that all of the feed items have resurfaced in your feed reader as new. This is because I discovered the data I was using as each feed item's guid, the field used by readers to determine if an entry was unique, was not sufficient. This caused a couple of my recent entries not to be surfaced by readers. + +The fix required changing the formulation of the guid, which will then cause RSS readers to believe every entry is new again. Sorry for the inconvenience, but it had to be done to ensure all future entries are surfaced. Fortunately, there aren't that many items on this feed. + +Hope you enjoy the new stuff! 🤘