aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.atom.xml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-12-29 09:11:14 -0800
committerFranck Cuny <franck@fcuny.net>2021-12-29 09:20:07 -0800
commitbb78ea2ee3b4bcf4d88f797146cc7f0b9027d121 (patch)
tree6adae7edfa1fbfb32f07c6d3d3bd57e91641c0fd /layouts/index.atom.xml
parentcss: improve the color and fonts (diff)
downloadfcuny.net-bb78ea2ee3b4bcf4d88f797146cc7f0b9027d121.tar.gz
RSS: fix the template
Generate correctly the content of the RSS feed. I only want the blog articles, not the notes.
Diffstat (limited to 'layouts/index.atom.xml')
-rw-r--r--layouts/index.atom.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index 531e77c..1d73f9b 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -1,5 +1,5 @@
<feed xmlns="http://www.w3.org/2005/Atom">
- <title>Franck Cuny Website</title>
+ <title>{{ .Site.Title }}</title>
<link href="{{ .Permalink }}feed.xml" rel="self"/>
<link href="{{ .Permalink }}"/>
<id>{{ .Permalink }}</id>{{ with .Site.Author.name }}
@@ -7,7 +7,8 @@
<name>{{.}}</name>{{ with $.Site.Author.email }}
<email>{{.}}</email>{{end}}
</author>{{end}}
- <generator>Hugo -- gohugo.io</generator>{{ range where (first 10 (where .Site.Pages "Section" "posts")) "Params.hidden" "ne" "true" }}
+ <generator>Hugo -- gohugo.io</generator>
+ {{ range where (first 10 (where .Site.Pages "Section" "blog")) "Params.hidden" "ne" "true" }}
<entry>
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
<link href="{{ .Permalink }}"/>
@@ -18,5 +19,6 @@
{{- $fmt := "2006-01-02T15:04:05-07:00" }}
<published>{{ .Date.Format $fmt | safeHTML }}</published>
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
- </entry>{{ end }}
+ </entry>
+ {{ end }}
</feed>