aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/blog/layouts/index.atom.xml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-23 17:43:02 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-23 17:43:02 -0700
commit14a5a6d480f0c2d71b3f43b272e07c5ce769ad83 (patch)
tree33c9de5c9d5d2da8d0dc16302dfb9500717a490b /users/fcuny/blog/layouts/index.atom.xml
parentfeat(tahoe): enable sourcegraph (diff)
parentsign the drone configuration (diff)
downloadinfra-14a5a6d480f0c2d71b3f43b272e07c5ce769ad83.tar.gz
Merge remote-tracking branch 'blog/main' into fcuny/migrate-monorepo-blog
Diffstat (limited to '')
-rw-r--r--users/fcuny/blog/layouts/index.atom.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/users/fcuny/blog/layouts/index.atom.xml b/users/fcuny/blog/layouts/index.atom.xml
new file mode 100644
index 0000000..1d73f9b
--- /dev/null
+++ b/users/fcuny/blog/layouts/index.atom.xml
@@ -0,0 +1,24 @@
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title>{{ .Site.Title }}</title>
+ <link href="{{ .Permalink }}feed.xml" rel="self"/>
+ <link href="{{ .Permalink }}"/>
+ <id>{{ .Permalink }}</id>{{ with .Site.Author.name }}
+ <author>
+ <name>{{.}}</name>{{ with $.Site.Author.email }}
+ <email>{{.}}</email>{{end}}
+ </author>{{end}}
+ <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 }}"/>
+ <id>{{ .Permalink }}</id>{{ with .Site.Params.Author }}
+ <author>
+ <name>{{.}}</name>
+ </author>{{end}}
+ {{- $fmt := "2006-01-02T15:04:05-07:00" }}
+ <published>{{ .Date.Format $fmt | safeHTML }}</published>
+ {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
+ </entry>
+ {{ end }}
+</feed>