Skip to content

Commit

Permalink
fix: generate RSS for home only
Browse files Browse the repository at this point in the history
  • Loading branch information
maolonglong committed Feb 27, 2024
1 parent 1bd2f11 commit 1e947f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ weight = 20
limit = 42

[outputs]
# Disable section RSS
# Generate RSS for home only.
section = ["html"]
taxonomy = ["html"]
term = ["html"]
2 changes: 1 addition & 1 deletion layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<channel>
<title>{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<description>Recent content on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
Expand Down

0 comments on commit 1e947f7

Please sign in to comment.