rss.dtl (1696B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <rss version="2.0" 3 xmlns:content="http://purl.org/rss/1.0/modules/content/" 4 xmlns:atom="http://www.w3.org/2005/Atom" 5 > 6 <channel> 7 <title>{{ title }}</title> 8 <atom:link href="{{ link }}rss.xml" rel="self" type="application/rss+xml"/> 9 <link>{{ link }}</link> 10 <description>{{ description }}</description> 11 <generator>Miniblog</generator> 12 <docs>https://validator.w3.org/feed/docs/rss2.html</docs> 13 <lastBuildDate> 14 {{ build-date }} 15 </lastBuildDate> 16 {% if image-url %} 17 <image> 18 <url>{{ image-url }}</url> 19 <title>{{ title }}</title> 20 <link>{{ link }}</link> 21 </image> 22 {% endif %} 23 {% if language %} 24 <language>{{ language }}</language> 25 {% endif %} 26 {% if copyright %} 27 <copyright>{{ copyright }}</copyright> 28 {% endif %} 29 {% if managing-editor %} 30 <managingEditor>{{ managing-editor }}</managingEditor> 31 {% endif %} 32 {% if webmaster %} 33 <webMaster>{{ webmaster }}</webMaster> 34 {% endif %} 35 {% if category %} 36 <category>{{ category }}</category> 37 {% endif %} 38 {% if posts %} 39 <pubDate> 40 {{ posts.0.created-at-rfc-822 }} 41 </pubDate> 42 {% for post in posts %} 43 <item> 44 <title>{{ post.title }}</title> 45 <link>{{ link }}#{{ post.id }}</link> 46 <description>{{ post.rendered-content|strip-html|truncatechars:200 }}</description> 47 <pubDate>{{ post.created-at-rfc-822 }}</pubDate> 48 <content:encoded><![CDATA[ 49 {{ post.rendered-content|safe }} 50 ]]></content:encoded> 51 </item> 52 {% endfor %} 53 {% endif %} 54 </channel> 55 </rss>