rss20.xml 1.54 KB
Newer Older
Carl Schwan's avatar
Carl Schwan committed
1 2 3 4 5 6 7 8
---
---
<?xml version="1.0"?>{% assign lang = site.data.language[page.title] %}
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Planet KDE</title>
    <link>https://planet.kde.org{% if lang.name %}/{{ page.title }}{% endif %}</link>
    <description>Planet KDE{% if lang.name %} | {{ lang.name }}{% endif %}</description>
Carl Schwan's avatar
Carl Schwan committed
9
    <atom:link href="https://planet.kde.org{% if lang.name %}/{{ page.title }}{% endif %}/rss20.xml/" rel="self" type="application/rss+xml"/>
10
{% assign posts = paginator.posts | sort: "created_at" | reverse %}
Carl Schwan's avatar
Carl Schwan committed
11 12 13
    <image>
      <link>https://planet.kde.org{% if lang.name %}/{{ page.title }}{% endif %}</link>
      <title>Planet KDE</title>
Carl Schwan's avatar
Carl Schwan committed
14
      <url>https://planet.kde.org/assets/img/planetkde.svg</url>
Carl Schwan's avatar
Carl Schwan committed
15 16 17 18 19 20 21
      <height>48</height>
      <width>48</width>
    </image>
    {% if lang.name %}
       <language>{{ page.title }}</language>
    {% endif %} 
     <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
22
{% for post in posts %}
Carl Schwan's avatar
Carl Schwan committed
23 24 25
    <item>
      <guid isPermaLink="{% if post.guid contains '://' %}true{% else %}false{% endif %}">{{ post.guid }}</guid>
      <title>{{ post.title | xml_escape }}</title>
Carl Schwan's avatar
Carl Schwan committed
26
      <pubDate>{{ post.created_at | date_to_rfc822 }}</pubDate>
Carl Schwan's avatar
Carl Schwan committed
27 28
      <link>{{ post.original_link }}</link>
      <description>{{ post.content | xml_escape }}</description>
Carl Schwan's avatar
Carl Schwan committed
29 30 31 32
      <author>{{ post.author }}</author>
      {% if post.license %}
        <license>{{ post.license }}</license>
      {% endif %}
Carl Schwan's avatar
Carl Schwan committed
33 34 35 36
    </item>
{% endfor %}
  </channel>
</rss>