1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

RSS: add <ttl> tag

See the spec:
https://validator.w3.org/feed/docs/rss2.html#ltttlgtSubelementOfLtchannelgt

It should be essentially equivalent to the already-used `cache-control`
header.
This commit is contained in:
Rohan Kumar 2021-01-23 12:48:06 -08:00
parent aa5c16bdf3
commit 8d43e65750
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -16,6 +16,7 @@
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<ttl>1440</ttl>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}