add image to RSS

This commit is contained in:
Set Hallstrom 2020-11-09 15:52:26 +01:00
parent 3fde63ace6
commit 0ead345183

20
rss.xml
View file

@ -15,25 +15,14 @@ title : The Basspistol RSS Feed
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://jekyllrb.com/</generator>
<image>
<url>{{ site.url }}/siteicon.png</url>
<title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}</link>
</image>
<itunes:summary><![CDATA[Rare contemporary music, Founded in 2010, Basspistol is the Outernational Music Syndicate]]></itunes:summary>
<itunes:author>{{ site.publisher.mail }}</itunes:author>
<itunes:explicit>yes</itunes:explicit>
<itunes:image href="{{ site.url }}{{ site.banner }}" />
<itunes:owner>
<itunes:name>{{ site.publisher.name | xml_escape }}</itunes:name>
<itunes:email>info@basspitol.com</itunes:email>
</itunes:owner>
<managingEditor>{{ site.publisher.mail }} ({{ site.publisher.name }})</managingEditor>
<copyright>Anti-Copyright 2018 {{ site.title }}</copyright>
<itunes:subtitle>{{ site.title }}</itunes:subtitle>
<itunes:category text="Music">
</itunes:category>
{% for post in site.posts limit: 7 %}
<item>
@ -44,12 +33,7 @@ title : The Basspistol RSS Feed
<category>Hi-Lights</category>
<author>{{ site.publisher.mail | xml_escape }} ({{ site.publisher.name }})</author>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<itunes:author>{{ site.publisher.mail }}</itunes:author>
<itunes:explicit>No</itunes:explicit>
<itunes:subtitle>{{ post.description | truncate: 200 | xml_escape }}</itunes:subtitle>
<itunes:summary>{{ post.description | xml_escape }}</itunes:summary>
<itunes:keywords>{% for tags in post.tags %}{{ tags | xml_escape | strip_html }}{% unless forloop.last %}, {% endunless %}{% endfor %}</itunes:keywords>
<itunes:image href="{{ site.url }}{{ post.image }}"/>
<enclosure url="{{ site.url }}{{ post.image }}" type="image/jpeg"/>
</item>
{% endfor %}
</channel>