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