diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-08 23:25:41 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-07-08 23:25:41 +0200 |
| commit | cd6644ea4ddc78597934ab0ef5ba50e3c3daa927 (patch) | |
| tree | 03de331a8db6386dfd6fa75155bfbcea6b4feaf3 /templates/notes.xml | |
| parent | 84ed124529ffeee1590295b8de3a8faf51848680 (diff) | |
| download | mitjafelicijan.com-cd6644ea4ddc78597934ab0ef5ba50e3c3daa927.tar.gz | |
Moved to a simpler SSG
Diffstat (limited to 'templates/notes.xml')
| -rw-r--r-- | templates/notes.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/notes.xml b/templates/notes.xml new file mode 100644 index 0000000..e314667 --- /dev/null +++ b/templates/notes.xml | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | <rss 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" version="2.0"> | ||
| 2 | <channel> | ||
| 3 | <title>{{ .Config.Title }}'s notes</title> | ||
| 4 | <link>{{ .Config.BaseURL }}</link> | ||
| 5 | <description>{{ .Config.Description }}</description> | ||
| 6 | <language>en-us</language> | ||
| 7 | |||
| 8 | {{ range $idx, $page := .Pages }} | ||
| 9 | {{ if eq $page.Type "note" }} | ||
| 10 | <item> | ||
| 11 | <title>{{ $page.Title }}</title> | ||
| 12 | <link>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</link> | ||
| 13 | <pubDate>{{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate> | ||
| 14 | <guid>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</guid> | ||
| 15 | <description>{{ $page.Summary }}</description> | ||
| 16 | <content:encoded>{{ $page.Raw }}</content:encoded> | ||
| 17 | </item> | ||
| 18 | {{ end }} | ||
| 19 | {{ end }} | ||
| 20 | </channel> | ||
| 21 | </rss> | ||
