Added Flattr button.

This commit is contained in:
Frank Smit
2012-05-17 15:56:35 +02:00
parent e13a7c8f8a
commit d056e1b3c9
4 changed files with 25 additions and 1 deletions

View File

@@ -156,7 +156,6 @@ p {
img {
max-width: 100%;
outline: 2px solid #ddd;
}
}

View File

@@ -21,3 +21,4 @@ Projects that use Misaka:
- [mynt](https://github.com/Anomareh/mynt)
- [Composer](https://github.com/shazow/composer)
- [Socrates](https://github.com/honza/socrates)
- [Pagewise](https://bitbucket.org/ainm/pagewise/overview)

View File

@@ -3,8 +3,31 @@
{% block title %}{{ escape(page.title) }}{% end %}
{% block location %}{{ page.location }}-section{% end %}
{% block head %}
<script type="text/javascript">
(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>
{% end %}
{% block content %}
<article class="page">
{{ page.content }}
<p>How about a Flattr?</p>
<p>
<a class="FlattrButton" style="display:none;" href="http://misaka.61924.nl/"></a>
<noscript>
<a href="http://flattr.com/thing/683782/Misaka" target="_blank">
<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" />
</a>
</noscript>
</p>
</article>
{% end %}

View File

@@ -7,6 +7,7 @@
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="{{ get_asset('/all.css') }}">
{% block head %}{% end %}
</head>
<body id="{% block location %}index-section{% end %}">