37 lines
1.5 KiB
XML
37 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
{%- if '/css/rezeptfeed.min.css'|asseturl is defined -%}
|
|
<?xml-stylesheet href="{{ '/css/rezeptfeed.min.css'|asseturl }}" type="text/css" ?>
|
|
{%- endif %}
|
|
{%- set baseurl = "https://c3woc.de/" -%}
|
|
{%- set search = "/rezept" %}
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
<title type="text">{%
|
|
if bag('translate', this.alt, 'projectfeed') %}{{ bag('translate', this.alt, 'projectfeed') }}{%
|
|
else %}Rezepte des C3WOC{% endif %}</title>
|
|
<id>{{ this._gid }}</id>
|
|
<updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
|
|
<link href="{{ search | url(external=true) }}" />
|
|
<link href="{{ this | url(external=true) }}" rel="self" />
|
|
<author>
|
|
<name>{% if this.author %}{{ this.author }}{% else %}C3WOC{% endif %}</name>
|
|
</author>{%
|
|
set pages = site.query('/rezept').include_undiscoverable(true).all() %}{%
|
|
for page in pages %}{% if not page._hidden %}
|
|
<entry xml:base=" {{ page._path | url}}/">
|
|
<title type="text">{{ page.title }}</title>
|
|
<id>{{ page._gid }}</id>
|
|
<link href="{{ page._path | url(external=false) }}" xml:base="{{ '/' | url(external=true) }}" />
|
|
<author>
|
|
<name>{% if page.author %}{{ page.author }}{% else %}C3WOC{% endif %}</name>
|
|
</author>
|
|
<content type="text">
|
|
{%- if page.meta_description %}
|
|
{{ page.meta_description }}
|
|
{%- else %}
|
|
Hier findet man die Anleitung für {{ page.title }}
|
|
{%- endif %}
|
|
</content>
|
|
</entry>
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
</feed>
|