2017-10-01 03:51:43 +00:00
|
|
|
+++
|
|
|
|
title = "RSS"
|
|
|
|
weight = 50
|
|
|
|
+++
|
|
|
|
|
2018-10-18 21:09:32 +00:00
|
|
|
If the site `config.toml` file sets `generate_rss = true`, then Zola will
|
2018-07-08 15:21:24 +00:00
|
|
|
generate an `rss.xml` page for the site, which will live at `base_url/rss.xml`. To
|
2019-11-26 19:30:30 +00:00
|
|
|
generate the `rss.xml` page, Zola will look for an `rss.xml` file in the `templates`
|
|
|
|
directory or, if one does not exist, it will use the use the built-in rss template.
|
2017-10-01 03:51:43 +00:00
|
|
|
|
2019-07-19 09:10:28 +00:00
|
|
|
**Only pages with a date will be available.**
|
2017-10-01 03:51:43 +00:00
|
|
|
|
2019-11-26 19:30:30 +00:00
|
|
|
The RSS template gets three variables in addition to `config`:
|
2017-10-01 03:51:43 +00:00
|
|
|
|
2019-09-16 09:46:17 +00:00
|
|
|
- `feed_url`: the full url to that specific feed
|
2017-10-01 03:51:43 +00:00
|
|
|
- `last_build_date`: the date of the latest post
|
2019-11-26 19:30:30 +00:00
|
|
|
- `pages`: see [page variables](@/documentation/templates/pages-sections.md#page-variables) for
|
2017-10-19 11:48:50 +00:00
|
|
|
a detailed description of what this contains
|