add flattr payment link

This commit is contained in:
Jörg Thalheim 2013-01-20 11:12:31 +01:00
parent 7eb6acf3a0
commit 54c5635a07
2 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,7 @@
<link rel="payment" href="https://flattr.com/submit/auto?
url={{ site.url | cgi_escape }}{{ post.url | cgi_escape }}
&user_id={{ site.flattr_user | cgi_escape }}
&title={{ post.title | cgi_escape }}
&category=text
{% unless post.categories == empty %}&tags={{ post.categories | join: ', ' | cgi_escape }}&{% endunless %}
{% if post.description %}&description={{ post.description | cgi_escape }}{% endif %}" type="text/html" />

View File

@ -8,9 +8,6 @@ layout: nil
<link href="{{ site.url }}/atom.xml" rel="self"/> <link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/> <link href="{{ site.url }}/"/>
{% if site.hub_url %}<link href="{{ site.hub_url }}" rel="hub"/>{% endif %} {% if site.hub_url %}<link href="{{ site.hub_url }}" rel="hub"/>{% endif %}
{% if site.flattr_user %}
<link rel="payment" href="https://flattr.com/submit/auto?url=https%3A%2F%2Fdevelopers.flattr.net%2F&amp;user_id=Mic92" type="text/html" />
{% endif %}
<updated>{{ site.time | date_to_xmlschema }}</updated> <updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id> <id>{{ site.url }}/</id>
<author> <author>
@ -24,6 +21,7 @@ layout: nil
<title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title> <title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
<link href="{{ site.url }}{{ post.url }}"/> <link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated> <updated>{{ post.date | date_to_xmlschema }}</updated>
{% if site.flattr_user %}{% include flattr_payment_link.html %}{% endif %}
<id>{{ site.url }}{{ post.id }}</id> <id>{{ site.url }}{{ post.id }}</id>
<content type="html"><![CDATA[ <content type="html"><![CDATA[
<img src="//piwik.higgsboson.tk/piwik.php?idsite=1&action_name={{post.title | cgi_escape}}" style="border:0" alt="" /> <img src="//piwik.higgsboson.tk/piwik.php?idsite=1&action_name={{post.title | cgi_escape}}" style="border:0" alt="" />