diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 06:18:10 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 06:18:10 +0200 |
| commit | af205845111a42b4ec5761918a9e6a3bfa1455f8 (patch) | |
| tree | 2d83499b81704e625b373f855c2a0741d63b3c75 /themes/simple/layouts/section | |
| parent | df1729b484b8ad74eae997f737d7c763ff843f3d (diff) | |
| download | mitjafelicijan.com-af205845111a42b4ec5761918a9e6a3bfa1455f8.tar.gz | |
Added RSS feed for notes only
Diffstat (limited to 'themes/simple/layouts/section')
| -rw-r--r-- | themes/simple/layouts/section/notes.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/simple/layouts/section/notes.xml b/themes/simple/layouts/section/notes.xml new file mode 100644 index 0000000..7d4c52a --- /dev/null +++ b/themes/simple/layouts/section/notes.xml | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
| 2 | |||
| 3 | <channel> | ||
| 4 | |||
| 5 | <title>{{ .Site.Author.name }} - Notes</title> | ||
| 6 | <link>{{ .Permalink }}</link> | ||
| 7 | <description>{{ .Site.Params.description }}</description> | ||
| 8 | <language>en-us</language> | ||
| 9 | |||
| 10 | {{ range (where .Site.RegularPages "Section" "notes") }} | ||
| 11 | <item> | ||
| 12 | |||
| 13 | <title>{{ .Title }}</title> | ||
| 14 | <link>{{ .Permalink }}</link> | ||
| 15 | <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> | ||
| 16 | {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} | ||
| 17 | <guid>{{ .Permalink }}</guid> | ||
| 18 | |||
| 19 | <description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description> | ||
| 20 | <content:encoded>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></content:encoded> | ||
| 21 | |||
| 22 | </item> | ||
| 23 | {{end}} | ||
| 24 | |||
| 25 | </channel> | ||
| 26 | |||
| 27 | </rss> | ||
