|
@ -1,3 +1,14 @@ |
|
|
|
|
|
{{- $pctx := . -}} |
|
|
|
|
|
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} |
|
|
|
|
|
{{- $pages := slice -}} |
|
|
|
|
|
{{- if or $.IsHome $.IsSection -}} |
|
|
|
|
|
{{- $pages = $pctx.RegularPages -}} |
|
|
|
|
|
{{- else -}} |
|
|
|
|
|
{{- $pages = $pctx.Pages -}} |
|
|
|
|
|
{{- end -}} |
|
|
|
|
|
{{- $limit := .Site.Config.Services.RSS.Limit -}} |
|
|
|
|
|
{{- if ge $limit 1 -}} |
|
|
|
|
|
{{- $pages = $pages | first $limit -}} |
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
|
|
<channel> |
|
|
<channel> |
|
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> |
|
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> |
|
|