You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.4 KiB

{{- printf "<?xml-stylesheet href=\"/css/feed.xsl\" type=\"text/xsl\"?>" | safeHTML }}
<rss version="3.0" xmlns:atom="" encoding="utf-8">
<link>{{ .Permalink }}</link>
<generator>Hugo --</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ if .Site.Data.details.profilephoto}}
<atom:link href="{{.Site.BaseURL}}rss" rel="self" type="application/rss+xml" />{{ range .Site.RegularPages }}
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with }}<author>{{.}}{{ with $ }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>{{ if .Params.gif}}
<enclosure url="{{.Site.BaseURL}}{{.Params.gif}}" />
{{end}}{{ if}}
<enclosure url="{{.Site.BaseURL}}{{}}" />
{{end}}{{ if}}
<enclosure url="{{.Site.BaseURL}}{{}}" />
{{end}}{{ if .Params.image}}
<description>{{- .Content | html -}}</description>
</item>{{ end }}