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.
[]
= "~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 Title"
= "Short feed description"
= "/favicon.ico"
= "posts"
= ["/posts/**"]
= ["/posts/[0-9]*/", "/posts/"]
[]
= ["/", "/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.
- JSON
posts/feed.json
- RSS
posts/rss.xml
- Atom
posts/atom.xml
Alternate
The settings for alternate
are used to indicate which output files should link to the generated feeds:
[]
= ["/", "/posts/**/*.html"]
Files that match the glob patterns include <link rel="alternate">
elements for each feed to help readers find your feeds <3.