Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'

This commit is contained in:
Bjørn Erik Pedersen
2023-12-04 15:24:01 +01:00
810 changed files with 24147 additions and 7766 deletions

View File

@@ -1,8 +1,8 @@
---
title: RSS templates
description: Use the built-in RSS template, or create your own.
keywords: [rss, xml, templates]
categories: [templates]
keywords: [rss,xml,templates]
menu:
docs:
parent: templates
@@ -15,7 +15,7 @@ toc: true
By default, when you build your site, Hugo generates RSS feeds for home, section, taxonomy, and term pages. Control feed generation in your site configuration. For example, to generate feeds for home and section pages, but not for taxonomy and term pages:
{{< code-toggle file=hugo copy=false >}}
{{< code-toggle file=hugo >}}
[outputs]
home = ['html', 'rss']
section = ['html', 'rss']
@@ -25,13 +25,13 @@ term = ['html']
To disable feed generation for all [page kinds]:
{{< code-toggle file=hugo copy=false >}}
{{< code-toggle file=hugo >}}
disableKinds = ['rss']
{{< /code-toggle >}}
By default, the number of items in each feed is unlimited. Change this as needed in your site configuration:
{{< code-toggle file=hugo copy=false >}}
{{< code-toggle file=hugo >}}
[services.rss]
limit = 42
{{< /code-toggle >}}
@@ -40,9 +40,9 @@ Set `limit` to `-1` to generate an unlimited number of items per feed.
The built-in RSS template will render the following values, if present, from your site configuration:
{{< code-toggle file=hugo copy=false >}}
{{< code-toggle file=hugo >}}
copyright = '© 2023 ABC Widgets, Inc.'
[author]
[params.author]
name = 'John Doe'
email = 'jdoe@example.org'
{{< /code-toggle >}}