Agent Wranglers

HTML basics Recommended

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.

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">
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.

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/html-basics/feed-discovery.