about summary refs log tree commit diff
path: root/users
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
commit6a6fac903f0bf668803da05ec990b72bb70ceeee (patch)
treecb891a1d58ca6c8b51cbe20cd4512f0bec25fc90 /users
parentcss: improve the color and fonts (diff)
downloadworld-6a6fac903f0bf668803da05ec990b72bb70ceeee.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 'users')
-rw-r--r--users/fcuny/blog/layouts/index.atom.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/users/fcuny/blog/layouts/index.atom.xml b/users/fcuny/blog/layouts/index.atom.xml
index 531e77c..1d73f9b 100644
--- a/users/fcuny/blog/layouts/index.atom.xml
+++ b/users/fcuny/blog/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>