{{feedLink}} helper

It creates a link element with URL to the RSS and JSON feeds (if they are enabled in the site settings).

Syntax:

{{feedLink}}

Example output:

<link type="application/atom+xml" rel="alternate" href="https://example.com/feed.xml"/>
<link type="application/json" rel="alternate" href="https://example.com/feed.json"/>  

Should be used in the <head> section of the website.

The feed content itself is built from the feed templates.

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide