brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: one HTML link tag lets feed readers discover your RSS feed by itself

Html
~/tips/tip-html-rss-autodiscovery

title="Example blog" href="/feed.xml">

People can paste your site address into a reader and it finds the feed.

I like following sites in a feed reader, and the nicest ones let me paste the home page address and sort out the rest. That takes one tag.

In the head of your pages:

<link rel="alternate" type="application/rss+xml"
      title="Example blog" href="/feed.xml">

For an Atom feed, use the other type:

<link rel="alternate" type="application/atom+xml"
      title="Example blog" href="/atom.xml">

Many readers look for this when you give them a normal page address, and offer the feed by its title. If you have more than one feed, say posts and comments, add a tag for each with a clear title so people can tell them apart.

Check whether your site generator or CMS already adds it, because many do, and a second copy shows up as a duplicate choice. The tag only points to a feed, it does not create one. A wrong href fails silently from your point of view, so open the address yourself and see that you get XML. Keeping a visible link in the footer is still kind to people whose reader does not look.

Further reading: MDN: HTML rel attribute

More Html tips import { format } from "dates"; width="640" height="360" poster="demo.jpg"> The HTML optgroup element puts headings inside a long dropdown srclang="en" label="English" default> An HTML noindex meta tag keeps one page out of search results All Html tips (14) All topics

Link