Fixing the RSS Feed

tl;dr

For most people, you can just open /src/site/feed.njk from your repo and modify lines 10, 11, and 26 to have 5 slashes (/) instead of 4.
Fixing the RSS Feed-4.png

Fixing the RSS Feed-5.png

Save and push changes, and your feed should start rendering properly.

If you use custom icons, you may only need the 4 slashes to make the feed work.[1]

RSS Feed not working

Fixing the RSS Feed-1.png

If you've tried to view the RSS feed for your site, you've probably seen the above error and noticed that your RSS feed otherwise looks well formed. If you look closely, the problem is when links are created with the feed.njk script, they don't get closed properly in the feed.xml output file.

Fixing the RSS Feed-2.png

I tried a few things before I remembered that I should search for answers first, and found that this problem is well documented and explored; in particular, dayne on GitHub did a ton of testing and found the solution of using 5 / instead of 4.[2]

Fixing the RSS Feed-6.png


  1. RSS link missing · Issue #136 · oleeskild/digitalgarden ↩︎

  2. Atom/RSS feed error · Issue #493 · oleeskild/obsidian-digital-garden ↩︎