You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
2 years ago
|
{{- $pctx := . -}}
|
||
|
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||
|
{{- $pages := $pctx.RegularPages -}}
|
||
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||
|
{{- if ge $limit 1 -}}
|
||
|
{{- $pages = $pages | first $limit -}}
|
||
|
{{- end -}}
|
||
|
{{- printf "<feed xmlns=\"http://www.w3.org/2005/Atom\">" | safeHTML }}
|
||
|
|
||
2 years ago
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||
2 years ago
|
<link rel="self" href="{{ .Permalink }}"/>
|
||
2 years ago
|
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||
2 years ago
|
<author>
|
||
2 years ago
|
<name>Dominic Reich “OE7DRT”</name>
|
||
2 years ago
|
<email>dominic@noreply.oe7drt.com</email>
|
||
2 years ago
|
<uri>https://oe7drt.com</uri>
|
||
|
</author>
|
||
|
<id>{{ .Permalink }}</id>
|
||
|
{{ range $pages }}{{ if ne .Params.feed_exclude true }}
|
||
|
<entry>
|
||
2 years ago
|
<title>{{ .Title }}</title>
|
||
2 years ago
|
<author>
|
||
2 years ago
|
<name>Dominic Reich “OE7DRT”</name>
|
||
2 years ago
|
<email>dominic@noreply.oe7drt.com</email>
|
||
2 years ago
|
<uri>https://oe7drt.com</uri>
|
||
|
</author>
|
||
|
<link rel="alternate" href="{{ .Permalink }}"/>
|
||
|
<id>{{ .Permalink }}</id>
|
||
2 years ago
|
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||
|
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||
2 years ago
|
{{ if .Site.Params.rssFullContent }}
|
||
2 years ago
|
<summary type="html">{{ .Summary | html }}</summary>
|
||
|
<content type="html">{{ .Content | html }}</content>
|
||
2 years ago
|
{{ else }}
|
||
2 years ago
|
<summary type="html">{{ .Summary | html }}</summary>
|
||
2 years ago
|
{{ end }}
|
||
|
</entry>
|
||
|
{{ end }}{{ end }}
|
||
|
</feed>
|