1
0
Fork 0
forked from github/pelican

- Added configurable twitter button

Just add a TWITTER_USERNAME='foo' in your settings file
This commit is contained in:
Jerome 2010-11-17 08:24:20 +01:00
commit cdd1719334
2 changed files with 5 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<article>
<header> <h1 class="entry-title"><a href="{{ article.url }}"
rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title
}}</a></h1> </header>
}}</a></h1> {% include 'twitter.html' %} </header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
@ -37,4 +37,4 @@
</article>
</section>
{% endblock %}
{% endblock %}

View file

@ -0,0 +1,3 @@
{% if TWITTER_USERNAME %}
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="{{TWITTER_USERNAME}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
{% endif %}