diff options
author | Eric Park <me@ericswpark.com> | 2021-05-25 20:59:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 20:59:42 +0300 |
commit | 80312357ceee167aa9f224281363933a47e27994 (patch) | |
tree | e248357fee151cdb3f18df8c75bb7600491e4dee /README.md | |
parent | b7c82a7ff11dee3988e346005eb3627ab0964ae7 (diff) |
RSS improvements (#207)
* Show full article in RSS feed
* README: add RSS information
* README: add RSS disable tip
Closes #203
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -543,6 +543,29 @@ title = "e-mail" url = "mailto:mail@example.com" ``` +### RSS + +Hugo natively supports RSS. To generate a feed for a given page, append `index.xml` to the page URL. + +Note that the RSS feed at the base of your website will include all of the pages on your website. To only include posts in your RSS feed, generate the feed within the `posts/` subdirectory with the URL `posts/index.xml`. + +To only generate an RSS feed for your posts, disable the RSS output for the other page types: + +```toml +[outputs] + home = ["HTML"] + section = ["HTML", "RSS"] + taxonomy = ["HTML"] + term = ["HTML"] +``` + +By default, the RSS feed contains a brief summary of each page. If you prefer to show the entire contents for each page, then use the `rssFullContent` parameter: + +```toml +[params] +rssFullContent = true +``` + ## License Anatole is licensed under the [MIT license](https://github.com/lxndrblz/anatole/blob/master/LICENSE). |