WEB-12Recommended
Point readers to your feed
Announce every feed in each page's <head> with <link rel="alternate"> and the right type, so readers and agents can find it.
How to do it
Add one tag per feed (Atom and JSON Feed) to the shared head. Send the same links as a Link header. Send the header as Advertise agent files in headers says.
Examples
HTML example
<link rel="alternate" type="application/atom+xml" title="Example" href="/feed.xml">
<link rel="alternate" type="application/feed+json" title="Example" href="/feed.json">
HTTP example
Link: </feed.xml>; rel="alternate"; type="application/atom+xml"
How to check
A build gate finds one <link rel="alternate"> per feed in every page's head, with the feed's type. Each href answers 200 with that type.
Sources
Related rules
- AGT-60 Advertise agent files in headers in Agents as users
- AGT-75 Keep feeds to recent changes in Agents as users
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/html-basics/feed-discovery">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.