feat: add draft support

This commit is contained in:
2022-11-25 15:50:48 +01:00
parent d11ca2e133
commit bef7af2d08
11 changed files with 57 additions and 13 deletions

View File

@@ -8,13 +8,13 @@ permalink: /blog/feed/feed.xml
<subtitle>{{ metadata.description }}</subtitle>
<link href="{{ permalink | htmlBaseUrl(metadata.url) }}" rel="self"/>
<link href="{{ metadata.url | addPathPrefixToFullUrl }}"/>
<updated>{{ collections.articles | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<updated>{{ collections.articles | filterDraft | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.url }}</id>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for article in collections.articles | reverse %}
{%- for article in collections.articles | filterDraft | reverse %}
{% set absolutePostUrl %}{{ article.url | htmlBaseUrl(metadata.url) }}{% endset %}
<entry>
<title>{{ article.data.title }}</title>