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

@ -1,31 +0,0 @@
---
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>

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>