fix UTM in RSS

This commit is contained in:
Set Hallstrom 2020-09-25 13:57:32 +02:00
parent 7a1566a8fc
commit 3dbd8a87ad
2 changed files with 3 additions and 33 deletions

View file

@ -38,12 +38,13 @@ title : The Basspistol RSS Feed
{% for post in site.posts limit: 7 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>{% if post.link %}{{ post.link }}{% else %}{{ site.url }}{{ post.url }}{% endif %}</link>
<link>{% if post.link %}{{ post.link }}/?utm_source=RSS&amp;utm_medium=RSS&amp;utm_campaign={{ post.title | replace: ',','-' | replace: ' ', '-' | xml_escape }}{% else %}{{ site.url }}{{ post.url }}/?utm_source=RSS&amp;utm_medium=RSS&amp;utm_campaign={{ post.title | replace: ',','-' | replace: ' ', '-' | xml_escape }}{% endif %}</link>
<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>
<category>Hi-Lights</category>
<author>{{ site.publisher.mail | xml_escape }} ({{ site.publisher.name }})</author>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<published>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</published>
<updated>{{ post.last_modified_at | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<itunes:author>{{ site.publisher.mail }}</itunes:author>
<itunes:explicit>No</itunes:explicit>
<itunes:subtitle>{{ post.description | truncate: 252 | xml_escape }}</itunes:subtitle>