From cdd17193343c347c060a3607806dea7108016c27 Mon Sep 17 00:00:00 2001 From: Jerome Date: Wed, 17 Nov 2010 08:24:20 +0100 Subject: [PATCH] - Added configurable twitter button Just add a TWITTER_USERNAME='foo' in your settings file --- pelican/themes/notmyidea/templates/article.html | 4 ++-- pelican/themes/notmyidea/templates/twitter.html | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 pelican/themes/notmyidea/templates/twitter.html diff --git a/pelican/themes/notmyidea/templates/article.html b/pelican/themes/notmyidea/templates/article.html index 5e3d37ca..86b63231 100644 --- a/pelican/themes/notmyidea/templates/article.html +++ b/pelican/themes/notmyidea/templates/article.html @@ -5,7 +5,7 @@

{{ article.title - }}

+ }} {% include 'twitter.html' %}
@@ -37,4 +37,4 @@
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/pelican/themes/notmyidea/templates/twitter.html b/pelican/themes/notmyidea/templates/twitter.html new file mode 100644 index 00000000..c6b159f4 --- /dev/null +++ b/pelican/themes/notmyidea/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} +Tweet +{% endif %} \ No newline at end of file