aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Bach <marix@marix.org>2017-09-01 22:29:10 +0200
committerMatthias Bach <marix@marix.org>2017-09-01 22:45:31 +0200
commit9f2efeba3030418da16aeb1affd95b33f66f6e41 (patch)
tree138a5a89f68c28339544448a60cd9dd065e5802c
parent6b87cae2c40eccd808315c41922fb59aaddf81f5 (diff)
downloadpelican-themes-9f2efeba3030418da16aeb1affd95b33f66f6e41.tar.gz
Add support for Flattr domain verification to Pelican-Boostrap3
-rw-r--r--pelican-bootstrap3/README.md4
-rw-r--r--pelican-bootstrap3/templates/base.html5
2 files changed, 9 insertions, 0 deletions
diff --git a/pelican-bootstrap3/README.md b/pelican-bootstrap3/README.md
index 02a130a..d8d49d7 100644
--- a/pelican-bootstrap3/README.md
+++ b/pelican-bootstrap3/README.md
@@ -351,6 +351,10 @@ All you have to do, is:
By default, the Tipue search page is configured at "/search.html", but you can override that with the `SEARCH_URL`
setting, which comes in handy if you have fancy rewrite rules in your Apache or Nginx configuration.
+### Flattr
+
+This theme has support for linking your domain with [Flattr](https://flattr.com). To enable this provide your `FLATTR_ID`. Be aware that you will also have to go [Flattr's domain settings](https://flattr.com/settings/domains) and link your domain.
+
### Footer
The footer will display a copyright message using the AUTHOR variable and the year of the latest post. If a content license mark is enabled (see above), that will be shown as well.
diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html
index 195934b..9a69baf 100644
--- a/pelican-bootstrap3/templates/base.html
+++ b/pelican-bootstrap3/templates/base.html
@@ -53,6 +53,11 @@
{# Twitter Cards tags #}
{% include 'includes/twitter_cards.html' %}
+ {# Flattr ID for the Flattr browser plug-in #}
+ {% if FLATTR_ID %}
+ <meta name="flattr:id" content="m1qj28">
+ {% endif %}
+
<!-- Bootstrap -->
{% if BOOTSTRAP_THEME %}
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/bootstrap.{{ BOOTSTRAP_THEME }}.min.css" type="text/css"/>