implement donate buttons (closes #9)

The only way I could figure out how to make the assets dir work in all
levels of the website was to use a variable.  If someone has a better idea,
I'm all ears :).
parent 2591872b
<!-- use variable for assets dir to provide path that works in all instances -->
{% assign assets = '' %}
{% assign depth = page.url | split: '/' | size | minus: 1 %}
{% assign assets = 'assets' %}
{% if depth == 1 %}{% assign assets = '../assets' %}
{% elsif depth == 2 %}{% assign assets = '../assets' %}
{% elsif depth == 3 %}{% assign assets = '../../assets' %}
{% elsif depth == 4 %}{% assign assets = '../../../assets' %}
{% elsif depth == 5 %}{% assign assets = '../../../../assets' %}
{% endif %}
......@@ -11,3 +11,5 @@
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
<link rel="shortcut icon" href="{{ "/favicon.png" | prepend: site.baseurl }}">
</head>
{% include assets.html %}
### Donate
F-Droid is powered by your donations.
F-Droid is powered by your donations!
[![Donate]({{ assets }}/paypal_donate_button.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E2FCXCT6837GL)
[PayPal]
[![Flattr]({{ assets }}/flattr-badge-large.png)](https://flattr.com/thing/343053/F-Droid-Repository)
[Flattr]
[![bitcoin]({{ assets }}/bitcoin.png)](https://blockchain.info/address/15u8aAPK4jJ5N8wpWJ5gutAyyeHtKX5i18)
[`15u8aAPK4jJ5N8wpWJ5gutAyyeHtKX5i18`](bitcoin:15u8aAPK4jJ5N8wpWJ5gutAyyeHtKX5i18)
[bitcoin]
__Bank Transfer__
[bank]
```
Name: F-Droid Limited
IBAN: GB92 BARC 2056 7893 4088 92
SWIFT: BARCGB22
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment