Commit 9de5a2e6 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Fix RSS feed

parent 7387f94a
{{- $pages := "" -}}
{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- else -}}{{- $pages = .Pages -}}{{- end -}}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }}’s {{ if eq .Type "photos" }}Photos{{ else if eq .Type "notes" }}Notes{{ else if eq .Title "Home" }}Blog Posts, Photos and Notes{{ else }}Blog Posts{{ end }}</title>
......@@ -12,7 +14,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range .Pages }}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment