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:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency> <sy:updateFrequency>1</sy:updateFrequency>
<generator>https://jekyllrb.com/</generator> <generator>https://jekyllrb.com/</generator>
<image> <image>
<url>{{ site.url }}/siteicon.png</url> <url>{{ site.url }}/siteicon.png</url>
<title>{{ site.title | xml_escape }}</title> <title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}</link> <link>{{ site.url }}</link>
</image> </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> <managingEditor>{{ site.publisher.mail }} ({{ site.publisher.name }})</managingEditor>
<copyright>Anti-Copyright 2018 {{ site.title }}</copyright> <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 %} {% for post in site.posts limit: 7 %}
<item> <item>
@ -44,12 +33,7 @@ title : The Basspistol RSS Feed
<category>Hi-Lights</category> <category>Hi-Lights</category>
<author>{{ site.publisher.mail | xml_escape }} ({{ site.publisher.name }})</author> <author>{{ site.publisher.mail | xml_escape }} ({{ site.publisher.name }})</author>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate> <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<itunes:author>{{ site.publisher.mail }}</itunes:author> <enclosure url="{{ site.url }}{{ post.image }}" type="image/jpeg"/>
<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 }}"/>
</item> </item>
{% endfor %} {% endfor %}
</channel> </channel>