sito-hackit-16/themes/pelican-bootstrap3/templates/includes/shariff.html
Giuliano Peraz 18fa7e0c1f Adds pelican-bootstrap3 and custom css as default theme for pelican
It adds also main.css from Dieco
2016-05-20 23:38:21 +02:00

25 lines
No EOL
849 B
HTML

{% if SHARIFF|default(false) %}
<hr />
<!-- Shariff Button BEGIN -->
<div class="shariff"
{% if SHARIFF_BACKEND_URL %}
data-backend-url="{{ SHARIFF_BACKEND_URL }}"
{% endif %}
{% if SHARIFF_LANG %}
data-lang="{{ SHARIFF_LANG }}"
{% endif %}
{% if SHARIFF_ORIENTATION|default('vertical') %}
data-orientation="{{ SHARIFF_ORIENTATION }}"
{% endif %}
{% if SHARIFF_SERVICES %}
data-services = "{{ SHARIFF_SERVICES }}"
{% endif %}
{% if SHARIFF_THEME %}
data-theme="{{ SHARIFF_THEME }}"
{% endif %}
{% if SHARIFF_TWITTER_VIA|default(false) %}
data-twitter-via="{{ TWITTER_USERNAME }}"
{% endif %}
data-url="{{ SITEURL }}/{{ article.url }}"></div>
<!-- Shariff Button END -->
{% endif %}