Initial commit.
This commit is contained in:
25
feed/feed.njk
Normal file
25
feed/feed.njk
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
permalink: feed/atom.xml
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ metadata.title }}</title>
|
||||
<subtitle>{{ metadata.subtitle }}</subtitle>
|
||||
<link href="{{ metadata.feedurl }}" rel="self"/>
|
||||
<link href="{{ metadata.url }}"/>
|
||||
<updated>{{ collections.post | lastUpdatedDate }}</updated>
|
||||
<id>{{ metadata.id }}</id>
|
||||
<author>
|
||||
<name>{{ metadata.author.name }}</name>
|
||||
<email>{{ metadata.author.email }}</email>
|
||||
</author>
|
||||
{% for post in collections.post %}
|
||||
<entry>
|
||||
<title>{{ post.data.title }}</title>
|
||||
<link href="{{ metadata.url }}{{ post.url }}"/>
|
||||
<updated>{{ post.date | rssDate }}</updated>
|
||||
<id>{{ metadata.url }}{{ post.url }}</id>
|
||||
<content type="html">{{ post.templateContent }}</content>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
</feed>
|
5
feed/htaccess.njk
Normal file
5
feed/htaccess.njk
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
permalink: feed/.htaccess
|
||||
---
|
||||
# For Apache, to show `atom.xml` when browsing to directory /feed/ (hide the file!)
|
||||
DirectoryIndex atom.xml
|
Reference in New Issue
Block a user