forked from nyancrimew/maia.crimew.gay
uuh make da feed cool and epic and make google like it more
This commit is contained in:
parent
f35d30d7f5
commit
880739165c
1 changed files with 11 additions and 8 deletions
19
src/feed.njk
19
src/feed.njk
|
@ -14,7 +14,7 @@ metadata:
|
|||
id: https://maia.crimew.gay/
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.url }}">
|
||||
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xml:base="{{ metadata.url }}">
|
||||
<title>{{ metadata.title }}</title>
|
||||
<subtitle>{{ metadata.feed.subtitle }}</subtitle>
|
||||
<link href="{{ metadata.feed.url }}" rel="self"/>
|
||||
|
@ -26,17 +26,20 @@ metadata:
|
|||
<email>{{ metadata.author.email }}</email>
|
||||
</author>
|
||||
{%- for post in collections.posts %}
|
||||
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
|
||||
{%- set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
|
||||
<entry>
|
||||
<title>{{ post.data.title }}</title>
|
||||
{% if post.data.link %}
|
||||
<link href="{{ post.data.link }}"/>
|
||||
{% else %}
|
||||
<link href="{{ absolutePostUrl }}"/>
|
||||
{% endif %}
|
||||
{%- if post.data.link %}
|
||||
<link href="{{ post.data.link }}"/>
|
||||
{%- else %}
|
||||
<link href="{{ absolutePostUrl }}"/>
|
||||
{%- endif %}
|
||||
<updated>{{ post.date | dateToRfc3339 }}</updated>
|
||||
<id>{{ absolutePostUrl }}</id>
|
||||
<content type="html"><![CDATA[{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) | safe }}]]></content>
|
||||
<content:encoded type="html"><![CDATA[{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) | safe }}]]></content:encoded>
|
||||
{%- if post.data.feature_image %}
|
||||
<media:content url="{{ post.data.feature_image | url | absoluteUrl(metadata.url) }}" type="image/jpeg" expression="full"></media:content>
|
||||
{%- endif %}
|
||||
</entry>
|
||||
{%- endfor %}
|
||||
</feed>
|
||||
|
|
Loading…
Reference in a new issue