Feeds

Feeds are integrated with the compiler but are optional so they need to be enabled.

Add the std::feed plugin to your project dependencies and configure generation of feeds to a target folder.

[dependencies."std::feed"]
version = "~2"

Here is an example from the blog blueprint settings which stores it's articles in a posts folder, to generate feeds for the blog posts add this to your site settings:

[feed.posts]
title = "Feed Title"
description = "Short feed description"
favicon = "/favicon.ico"
target = "posts"
includes = ["/posts/**"]
excludes = ["/posts/[0-9]*/", "/posts/"]

[feed.posts.alternate]
includes = ["/", "/posts/**/*.html"]

Now when you compile your project the feeds will automatically be generated using the pages in the posts folder generating the feeds for each type of feed.

Alternate

The settings for alternate are used to indicate which output files should link to the generated feeds:

[feed.posts.alternate]
includes = ["/", "/posts/**/*.html"]

Files that match the glob patterns include <link rel="alternate"> elements for each feed to help readers find your feeds <3.