mirror of
https://github.com/CoolnsX/my-website.git
synced 2025-12-20 15:25:19 +05:30
49 lines
2.0 KiB
XML
49 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
|
<channel>
|
|
<title>{{ config.title }}
|
|
{%- if term %} - {{ term.name }}
|
|
{%- elif section.title %} - {{ section.title }}
|
|
{%- endif -%}
|
|
</title>
|
|
<link>
|
|
{%- if section -%}
|
|
{{ section.permalink | escape_xml | safe }}
|
|
{%- else -%}
|
|
{{ config.base_url | escape_xml | safe }}
|
|
{%- endif -%}
|
|
</link>
|
|
<description>{{ config.description }}</description>
|
|
<generator>Zola</generator>
|
|
<language>{{ lang }}</language>
|
|
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
|
|
<lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
|
|
{%- for page in pages %}
|
|
<item>
|
|
<title>{{ page.title }}</title>
|
|
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
|
|
<author>
|
|
{%- if page.authors -%}
|
|
{{ page.authors[0] }}
|
|
{%- elif config.author -%}
|
|
{{ config.author }}
|
|
{%- else -%}
|
|
Unknown
|
|
{%- endif -%}
|
|
</author>
|
|
<link>{{ page.permalink | escape_xml | safe }}</link>
|
|
{% if page.extra.image %}
|
|
{%- if page.extra.image is starting_with("http") -%}
|
|
{%- set image_url = page.extra.image -%}
|
|
{%- else -%}
|
|
{%- set image_url = get_url(path=page.extra.image) -%}
|
|
{%- endif -%}
|
|
<media:thumbnail url="{{ image_url | safe }}" width="90" height="160"/>
|
|
{% endif -%}
|
|
<guid>{{ page.permalink | escape_xml | safe }}</guid>
|
|
<description xml:base="{{ page.permalink | escape_xml | safe }}">{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
|
|
</item>
|
|
{%- endfor %}
|
|
</channel>
|
|
</rss>
|