summaryrefslogtreecommitdiff
path: root/source/_partials
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-03-08 02:48:38 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-03-08 02:48:38 +0000
commit6cfb99bddd44f825a8d3d6b5985ee9d75684bd9f (patch)
tree32427e9cf1d4b3ea249567c1bb9f95f8d6cae6c3 /source/_partials
parentb517ca1a50745befc5c5248506b939647f7c8f47 (diff)
Add atom feed
Diffstat (limited to 'source/_partials')
-rw-r--r--source/_partials/post-as-rss-item.blade.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/_partials/post-as-rss-item.blade.php b/source/_partials/post-as-rss-item.blade.php
new file mode 100644
index 0000000..b172280
--- /dev/null
+++ b/source/_partials/post-as-rss-item.blade.php
@@ -0,0 +1,14 @@
+<entry>
+ <id>{{ $entry->getUrl() }}</id>
+ <link type="text/html" rel="alternate" href="{{ $entry->getUrl() }}" />
+ <title>{{ $entry->title }}</title>
+ <published>{{ date(DATE_ATOM, $entry->date) }}</published>
+ <updated>{{ date(DATE_ATOM, $entry->date) }}</updated>
+ <author>
+ <name>{{ $entry->author }}</name>
+ </author>
+ <summary type="html">{{ $entry->excerpt ?? $entry->description }}...</summary>
+ <content type="html"><![CDATA[
+ @includeFirst(['_posts.' . $entry->getFilename(), '_posts._tmp.' . $entry->getFilename()])
+ ]]></content>
+</entry>