Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
Added Flattr button.
Browse files Browse the repository at this point in the history
  • Loading branch information
FSX committed May 17, 2012
1 parent e13a7c8 commit d056e1b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/assets/screen.less
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ p {

img {
max-width: 100%;
outline: 2px solid #ddd;
}
}

Expand Down
1 change: 1 addition & 0 deletions docs/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
23 changes: 23 additions & 0 deletions docs/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://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:https://misaka.61924.nl/"></a>
<noscript>
<a href="http:https://flattr.com/thing/683782/Misaka" target="_blank">
<img src="http:https://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" />
</a>
</noscript>
</p>
</article>
{% end %}
1 change: 1 addition & 0 deletions docs/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<script src="http:https://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 %}">

Expand Down

0 comments on commit d056e1b

Please sign in to comment.