Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<subtitle>{{ site.description }}</subtitle>
<title>{{ site.title | escape }}</title>
<subtitle>{{ site.description | escape }}</subtitle>
<link href="{{ site.url }}/feed.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ site.url }}/</id>
<author>
<name>{{ site.author }}</name>
<email>{{ site.email }}</email>
<name>{{ site.author | escape }}</name>
<email>{{ site.email | escape }}</email>
</author>
{% for post in collections.posts | reverse %}
{% if loop.index0 < 20 %}
<entry>
<title>{{ post.data.title }}</title>
<title>{{ post.data.title | escape }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ site.url }}{{ post.url }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(site.url + post.url) }}</content>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(site.url + post.url) | escape }}</content>
</entry>
{% endif %}
{% endfor %}
Expand Down
10 changes: 5 additions & 5 deletions src/ramblings-feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }} — 碎碎念</title>
<title>{{ site.title | escape }} — 碎碎念</title>
<subtitle>零散的笔记、小小的想法,还有没写完的念头。</subtitle>
<link href="{{ site.url }}/ramblings/feed.xml" rel="self"/>
<link href="{{ site.url }}/ramblings/"/>
<updated>{{ collections.ramblings | newestUpdatedDate | dateToRfc3339 }}</updated>
<id>{{ site.url }}/ramblings/</id>
<author>
<name>{{ site.author }}</name>
<email>{{ site.email }}</email>
<name>{{ site.author | escape }}</name>
<email>{{ site.email | escape }}</email>
</author>
{% for rambling in collections.ramblings | reverse %}
{% if loop.index0 < 20 %}
<entry>
<title>{{ rambling.data.title }}</title>
<title>{{ rambling.data.title | escape }}</title>
<link href="{{ site.url }}{{ rambling.url }}"/>
<published>{{ rambling.date | dateToRfc3339 }}</published>
<updated>{{ (rambling.data.updated or rambling.date) | dateToRfc3339 }}</updated>
<id>{{ site.url }}{{ rambling.url }}</id>
<content type="html">{{ rambling.templateContent | htmlToAbsoluteUrls(site.url + rambling.url) }}</content>
<content type="html">{{ rambling.templateContent | htmlToAbsoluteUrls(site.url + rambling.url) | escape }}</content>
</entry>
{% endif %}
{% endfor %}
Expand Down
Loading