AddThis support.
This commit is contained in:
parent
d0434a41e8
commit
edc47c84ab
4 changed files with 12 additions and 1 deletions
|
@ -13,6 +13,7 @@ A minimalist [Pelican](http://blog.getpelican.com/) theme.
|
||||||
|
|
||||||
## Integrations
|
## Integrations
|
||||||
|
|
||||||
|
- AddThis
|
||||||
- Disqus
|
- Disqus
|
||||||
- Google Analytics
|
- Google Analytics
|
||||||
- Google Tag Manager
|
- Google Tag Manager
|
||||||
|
@ -112,6 +113,10 @@ By default, all article content is shown on Home.
|
||||||
If the article has a custom Summary, the custom summary is shown.
|
If the article has a custom Summary, the custom summary is shown.
|
||||||
If the article has `Summarise: True` metadata, the default article summary is shown.
|
If the article has `Summarise: True` metadata, the default article summary is shown.
|
||||||
|
|
||||||
|
## Code Highlight
|
||||||
|
|
||||||
|
If you want to replace Pygments theme (default is GitHub) take a look at [Pygments Docs](http://pygments.org/) and replace `pygments.min.css`.
|
||||||
|
|
||||||
## Live example
|
## Live example
|
||||||
|
|
||||||
You can find a demo [here](http://blog.alexandrevicenzi.com/).
|
You can find a demo [here](http://blog.alexandrevicenzi.com/).
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
<h2 id="{{ article.slug }}">{{ article.title }}</h2>
|
<h2 id="{{ article.slug }}">{{ article.title }}</h2>
|
||||||
<p>Posted on {{ article.locale_date }} in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
|
<p>Posted on {{ article.locale_date }} in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
|
||||||
</header>
|
</header>
|
||||||
|
{% if ADD_THIS_ID %}
|
||||||
|
<div class="addthis_sharing_toolbox"></div>
|
||||||
|
{% endif %}
|
||||||
<div>
|
<div>
|
||||||
{{ article.content }}
|
{{ article.content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -91,6 +91,9 @@
|
||||||
</footer>
|
</footer>
|
||||||
</main>
|
</main>
|
||||||
{% include "partial/ga.html" %}
|
{% include "partial/ga.html" %}
|
||||||
|
{% if ADD_THIS_ID %}
|
||||||
|
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script>
|
||||||
|
{% endif %}
|
||||||
{% block additional_js %}{% endblock %}
|
{% block additional_js %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -10,4 +10,4 @@
|
||||||
{{ page.content }}
|
{{ page.content }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue