website: add feeds filter (#3098)
This commit is contained in:
parent
5ca2ab6138
commit
20f90ee865
@ -23,6 +23,7 @@ metadata:
|
||||
<email>{{ metadata.author.email }}</email>
|
||||
</author>
|
||||
{%- for blog in collections.blogs | reverse %}
|
||||
{%- if not blog.data.draft %}
|
||||
{%- set absolutePostUrl = blog.url | absoluteUrl(metadata.url) %}
|
||||
<entry>
|
||||
<title>{{ blog.data.title }}</title>
|
||||
@ -33,5 +34,6 @@ metadata:
|
||||
<content xml:lang="{{ metadata.language }}" type="html">{{ blog.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
||||
{# <content xml:lang="{{ metadata.language }}" type="html">{{ blog.templateContent | striptags | truncate(200) }}</content> #}
|
||||
</entry>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</feed>
|
@ -19,6 +19,7 @@ metadata:
|
||||
<description>{{ metadata.subtitle }}</description>
|
||||
<language>{{ metadata.language }}</language>
|
||||
{%- for blog in collections.blogs %}
|
||||
{%- if not blog.data.draft %}
|
||||
{%- set absolutePostUrl = blog.url | absoluteUrl(metadata.url) %}
|
||||
<item>
|
||||
<title>{{ blog.data.title }}</title>
|
||||
@ -30,6 +31,7 @@ metadata:
|
||||
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
||||
<guid>{{ absolutePostUrl }}</guid>
|
||||
</item>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</channel>
|
||||
</rss>
|
Loading…
Reference in New Issue
Block a user