Skip to content

Commit faf4ca6

Browse files
serithemageclaude
andcommitted
Fix Hugo v0.156.0 빌드 오류: RSS 템플릿 .Site.Author 제거
posts/rss.xml에서도 .Site.Author를 .Site.Params로 교체. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f87fa9a commit faf4ca6

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

hugo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ theme: "hello-friend-ng"
55

66
params:
77
author: "ROBOCO"
8+
email: "contact@roboco.io"
89
dateform: "Jan 2, 2006"
910
dateformShort: "Jan 2"
1011
dateformNum: "2006-01-02"

layouts/posts/rss.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
2+
<channel>
3+
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
4+
<link>{{ .Permalink }}</link>
5+
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
6+
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
7+
<language>{{.}}</language>{{end}}{{ with .Site.Params.email }}
8+
<managingEditor>{{.}}{{ with $.Site.Params.author }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.email }}
9+
<webMaster>{{.}}{{ with $.Site.Params.author }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
10+
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
11+
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
12+
{{ with .OutputFormats.Get "RSS" -}}
13+
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
14+
{{ end -}}
15+
{{ range .Pages }}
16+
<item>
17+
<title>{{ .Title }}</title>
18+
<link>{{ .Permalink }}</link>
19+
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
20+
{{ with .Site.Params.email }}<author>{{.}}{{ with $.Site.Params.author }} ({{.}}){{end}}</author>{{end}}
21+
<guid>{{ .Permalink }}</guid>
22+
<description>{{ .Summary | html }}</description>
23+
<content type="html">{{ printf `<![CDATA[%s]]>` .Content | safeHTML }}</content>
24+
</item>
25+
{{ end }}
26+
</channel>
27+
</rss>

0 commit comments

Comments
 (0)