This commit is contained in:
Set Hallstrom 2020-09-25 13:12:33 +02:00
parent b69433e4ac
commit 6bda74c278
2 changed files with 40 additions and 12 deletions

31
ifttt.rss Normal file
View file

@ -0,0 +1,31 @@
---
layout: nil
title : Basspistol Feed
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<link rel="hub" href="https://pubsubhubbub.appspot.com" />
<title type="text" xml:lang="en">{{ site.name }}</title>
<link type="application/atom+xml" href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<id>{{ site.url }}/</id>
<author>
<name>{{ site.publisher.name }}</name>
<email>{{ site.publisher.email }}</email>
</author>
<rights type="text">CC-BY-NC-SA {{ site.time | date: "%Y" }} - {{ site.publisher.name }}. Some rights reserved.</rights>
{% for post in site.posts limit:10 %}
<entry>
<title>{{ post.title | xml_escape }}</title>
<link rel="alternate" type="text/html" href="{{ site.url }}{{ post.url }}/?utm_source=RSS&amp;utm_medium=RSS&amp;utm_campaign={{ post.title | replace: ',','' | replace: ' ', '' | xml_escape }}" />
<published>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</published>
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<content type="html"><![CDATA[ {{ post.content | markdownify }} ]]></content>
</entry>
{% endfor %}
</feed>

21
rss.xml
View file

@ -2,8 +2,8 @@
layout: nil layout: nil
title : The Basspistol RSS Feed title : The Basspistol RSS Feed
--- ---
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="US-ASCII"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" > <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" >
<channel> <channel>
<title>{{ site.title | xml_escape }}</title> <title>{{ site.title | xml_escape }}</title>
@ -20,24 +20,21 @@ title : The Basspistol RSS Feed
<url>{{ site.url }}{{ site.banner }}</url> <url>{{ site.url }}{{ site.banner }}</url>
<title>{{ site.title | xml_escape }}</title> <title>{{ site.title | xml_escape }}</title>
<link>{{ site.url }}</link> <link>{{ site.url }}</link>
<width>1024</width>
<height>1024</height>
</image> </image>
<itunes:summary><![CDATA[Rare contemporary music, Founded in 2010, Basspistol is the Outernational Music Syndicate]]></itunes:summary> <itunes:summary><![CDATA[Rare contemporary music, Founded in 2010, Basspistol is the Outernational Music Syndicate]]></itunes:summary>
<itunes:author>{{ site.title }}</itunes:author> <itunes:author>{{ site.publisher.mail }}</itunes:author>
<itunes:explicit>yes</itunes:explicit> <itunes:explicit>yes</itunes:explicit>
<itunes:image href="{{ site.url }}{{ site.banner }}" /> <itunes:image href="{{ site.url }}{{ site.banner }}" />
<itunes:owner> <itunes:owner>
<itunes:name>{{ site.title | xml_escape }}</itunes:name> <itunes:name>{{ site.title | xml_escape }}</itunes:name>
<itunes:email>info@basspitol.com</itunes:email> <itunes:email>info@basspitol.com</itunes:email>
</itunes:owner> </itunes:owner>
<managingEditor>set@basspistol.com (Basspistol)</managingEditor> <managingEditor>{{ site.publisher.mail }}</managingEditor>
<copyright>Anti-Copyright 2018 {{ site.title }}</copyright> <copyright>Anti-Copyright 2018 {{ site.title }}</copyright>
<itunes:subtitle>{{ site.title }}</itunes:subtitle> <itunes:subtitle>{{ site.title }}</itunes:subtitle>
<itunes:category text="Music"> <itunes:category text="Music">
</itunes:category> </itunes:category>
<rawvoice:rating>TV-14</rawvoice:rating>
<rawvoice:frequency>Daily</rawvoice:frequency>
{% for post in site.posts %} {% for post in site.posts %}
<item> <item>
<title>{{ post.title | xml_escape }}</title> <title>{{ post.title | xml_escape }}</title>
@ -45,13 +42,13 @@ title : The Basspistol RSS Feed
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid> <guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<description> &lt;img src=&quot;{{ site.url }}{{ post.image }}&quot; /&gt; &lt;br /&gt;{{ post.description | truncate: 150 | xml_escape }} {% if post.link %}&lt;br /&gt;Full article on: &lt;a href=&quot;{{ site.url }}{{ post.url }}&quot;&gt;{{ site.url }}{{ post.url }}&lt;/a&gt;{% endif %}</description> <description> &lt;img src=&quot;{{ site.url }}{{ post.image }}&quot; /&gt; &lt;br /&gt;{{ post.description | truncate: 150 | xml_escape }} {% if post.link %}&lt;br /&gt;Full article on: &lt;a href=&quot;{{ site.url }}{{ post.url }}&quot;&gt;{{ site.url }}{{ post.url }}&lt;/a&gt;{% endif %}</description>
<category>Hi-Lights</category> <category>Hi-Lights</category>
<author>{{ post.author | xml_escape }}</author> <author>{{ site.publisher.mail }}</author>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate> <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<itunes:author>{{ post.artist | xml_escape }}</itunes:author> <itunes:author>{{ site.publisher.mail | xml_escape }}</itunes:author>
<itunes:explicit>No</itunes:explicit> <itunes:explicit>No</itunes:explicit>
<itunes:subtitle>{{ post.description | strip_html | truncate: 252 | xml_escape }}</itunes:subtitle> <itunes:subtitle>{{ post.description | truncate: 252 | xml_escape }}</itunes:subtitle>
<itunes:summary>{{ post.description | xml_escape }}</itunes:summary> <itunes:summary>{{ post.description | xml_escape }}</itunes:summary>
<itunes:keywords>{% for tags in post.tags %}{{ tags | strip_html | xml_escape }}{% unless forloop.last %}, {% endunless %}{% endfor %}</itunes:keywords> <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 }}"/> <itunes:image href="{{ site.url }}{{ post.image }}"/>
</item> </item>
{% endfor %} {% endfor %}