fix UTM in RSS
This commit is contained in:
parent
7a1566a8fc
commit
3dbd8a87ad
31
ifttt.rss
31
ifttt.rss
|
@ -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&utm_medium=RSS&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>
|
|
5
rss.xml
5
rss.xml
|
@ -38,12 +38,13 @@ title : The Basspistol RSS Feed
|
||||||
{% for post in site.posts limit: 7 %}
|
{% for post in site.posts limit: 7 %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ post.title | xml_escape }}</title>
|
<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&utm_medium=RSS&utm_campaign={{ post.title | replace: ',','-' | replace: ' ', '-' | xml_escape }}{% else %}{{ site.url }}{{ post.url }}/?utm_source=RSS&utm_medium=RSS&utm_campaign={{ post.title | replace: ',','-' | replace: ' ', '-' | xml_escape }}{% endif %}</link>
|
||||||
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
||||||
<description> <img src="{{ site.url }}{{ post.image }}" /> <br />{{ post.description | truncate: 150 | xml_escape }} {% if post.link %}<br />Full article on: <a href="{{ site.url }}{{ post.url }}">{{ site.url }}{{ post.url }}</a>{% endif %}</description>
|
<description> <img src="{{ site.url }}{{ post.image }}" /> <br />{{ post.description | truncate: 150 | xml_escape }} {% if post.link %}<br />Full article on: <a href="{{ site.url }}{{ post.url }}">{{ site.url }}{{ post.url }}</a>{% endif %}</description>
|
||||||
<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>
|
<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:author>{{ site.publisher.mail }}</itunes:author>
|
||||||
<itunes:explicit>No</itunes:explicit>
|
<itunes:explicit>No</itunes:explicit>
|
||||||
<itunes:subtitle>{{ post.description | truncate: 252 | xml_escape }}</itunes:subtitle>
|
<itunes:subtitle>{{ post.description | truncate: 252 | xml_escape }}</itunes:subtitle>
|
||||||
|
|
Loading…
Reference in a new issue