add flattr support
This commit is contained in:
parent
65247a1363
commit
b5c314f09b
@ -98,6 +98,9 @@ delicious_count: 3
|
||||
disqus_short_name: mic92
|
||||
disqus_show_comment_count: false
|
||||
|
||||
# Flattr
|
||||
flattr_user: Mic92
|
||||
|
||||
# Google Analytics
|
||||
google_analytics_tracking_id:
|
||||
|
||||
|
@ -1 +1,14 @@
|
||||
{% include custom/richobject.html %}
|
||||
{% if site.flattr_user %}
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
(function() {
|
||||
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
|
||||
s.type = 'text/javascript';
|
||||
s.async = true;
|
||||
s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
|
||||
t.parentNode.insertBefore(s, t);
|
||||
})();
|
||||
/* ]]> */
|
||||
</script>
|
||||
{% endif %}
|
||||
|
9
source/_includes/post/flattr_button.html
Normal file
9
source/_includes/post/flattr_button.html
Normal file
@ -0,0 +1,9 @@
|
||||
<a class="FlattrButton" style="display:none;"
|
||||
title="{{ page.title }}"
|
||||
data-flattr-uid="{{ site.flattr_user }}"
|
||||
data-flattr-tags="{{ page.tags }}"
|
||||
data-flattr-button="compact"
|
||||
data-flattr-category="text"
|
||||
href="{{ site.url }}{{ page.url }}">
|
||||
{{ page.content[0,500] }}
|
||||
</a>
|
@ -1,4 +1,7 @@
|
||||
<div class="share">
|
||||
{% if site.flattr_user %}
|
||||
{% include post/flattr_button.html %}
|
||||
{% endif %}
|
||||
<div class="addthis_toolbox addthis_default_style ">
|
||||
{% if site.facebook_like %}
|
||||
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
|
||||
@ -6,9 +9,9 @@
|
||||
{% if site.twitter_tweet_button %}
|
||||
<a class="addthis_button_tweet"></a>
|
||||
{% endif %}
|
||||
{% if site.google_plus_one %}
|
||||
{% if site.google_plus_one %}
|
||||
<a class="addthis_button_google_plusone" g:plusone:size="{{ site.google_plus_one_size }}"></a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<a class="addthis_counter addthis_pill_style"></a>
|
||||
</div>
|
||||
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid={{ site.addthis_profile_id }}"></script>
|
||||
|
@ -8,6 +8,9 @@ layout: nil
|
||||
<link href="{{ site.url }}/atom.xml" rel="self"/>
|
||||
<link href="{{ site.url }}/"/>
|
||||
{% 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&user_id=Mic92" type="text/html" />
|
||||
{% endif %}
|
||||
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
||||
<id>{{ site.url }}/</id>
|
||||
<author>
|
||||
|
Loading…
Reference in New Issue
Block a user