diff options
Diffstat (limited to 'src/feed.atom')
| -rw-r--r-- | src/feed.atom | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/feed.atom b/src/feed.atom new file mode 100644 index 0000000..9dc15ae --- /dev/null +++ b/src/feed.atom | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0"> | ||
| 3 | <id>{{ .Site.Other.Url }}</id> | ||
| 4 | <title>{{ .Site.Other.Title }}</title> | ||
| 5 | {{ with .Site.Pages.Children "blog/" }} | ||
| 6 | <updated>{{ .First.Date.Format "2006-01-02T15:04:05Z07:00" }}</updated> | ||
| 7 | {{ end }} | ||
| 8 | <author><name>{{ .Site.Other.Author }}</name></author> | ||
| 9 | <link href="{{ .Site.Other.Url }}" rel="alternate"></link> | ||
| 10 | <generator uri="https://github.com/piranha/gostatic">gostatic</generator> | ||
| 11 | |||
| 12 | {{ with .Site.Pages.Children "blog/" }} | ||
| 13 | {{ range .Slice 0 5 }} | ||
| 14 | <entry> | ||
| 15 | <id>{{ .Url }}</id> | ||
| 16 | <author><name>{{ or .Other.Author .Site.Other.Author }}</name></author> | ||
| 17 | <title type="html">{{ html .Title }}</title> | ||
| 18 | <published>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</published> | ||
| 19 | {{ range .Tags }} | ||
| 20 | <category term="{{ . }}"></category> | ||
| 21 | {{ end }} | ||
| 22 | <link href="{{ .Site.Other.Url }}/{{ .Url }}" rel="alternate"></link> | ||
| 23 | <content type="html"> | ||
| 24 | {{/* .Process runs here in case only feed changed */}} | ||
| 25 | {{ with cut "<section>" "</section>" .Process.Content }} | ||
| 26 | {{ html . }} | ||
| 27 | {{ end }} | ||
| 28 | </content> | ||
| 29 | </entry> | ||
| 30 | {{ end }} | ||
| 31 | {{ end }} | ||
| 32 | |||
| 33 | {{ with .Site.Pages.Children "research/" }} | ||
| 34 | {{ range .Slice 0 5 }} | ||
| 35 | <entry> | ||
| 36 | <id>{{ .Url }}</id> | ||
| 37 | <author><name>{{ or .Other.Author .Site.Other.Author }}</name></author> | ||
| 38 | <title type="html">{{ html .Title }}</title> | ||
| 39 | <published>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</published> | ||
| 40 | {{ range .Tags }} | ||
| 41 | <category term="{{ . }}"></category> | ||
| 42 | {{ end }} | ||
| 43 | <link href="{{ .Site.Other.Url }}/{{ .Url }}" rel="alternate"></link> | ||
| 44 | <content type="html"> | ||
| 45 | {{/* .Process runs here in case only feed changed */}} | ||
| 46 | {{ with cut "<section>" "</section>" .Process.Content }} | ||
| 47 | {{ html . }} | ||
| 48 | {{ end }} | ||
| 49 | </content> | ||
| 50 | </entry> | ||
| 51 | {{ end }} | ||
| 52 | {{ end }} | ||
| 53 | |||
| 54 | |||
| 55 | </feed> | ||
