modify title for rss and atom feeds

This commit is contained in:
Hedy Li 2021-08-25 11:46:40 +08:00
parent 0c74386d91
commit 3a8ae66cf4
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<title>~hedy</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<ttl>1440</ttl>

View File

@ -8,7 +8,7 @@
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Hedy's capsule</title>
<title>hedy's gemlog</title>
<link href="gemini://hedy.tilde.cafe"/>
<updated>{{ .Date.Format "2006-01-02" | safeHTML }}T12:00:00Z</updated>
<id>gemini://hedy.tilde.cafe</id>