From edc47c84abea634c02cdefa258b435cfb2db438f Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Tue, 21 Jul 2015 00:49:51 -0300 Subject: [PATCH] AddThis support. --- README.md | 5 +++++ templates/article.html | 3 +++ templates/base.html | 3 +++ templates/page.html | 2 +- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d585483..f4f749f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ A minimalist [Pelican](http://blog.getpelican.com/) theme. ## Integrations +- AddThis - Disqus - Google Analytics - 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 `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 You can find a demo [here](http://blog.alexandrevicenzi.com/). diff --git a/templates/article.html b/templates/article.html index 0134db7..2669539 100644 --- a/templates/article.html +++ b/templates/article.html @@ -15,6 +15,9 @@

{{ article.title }}

Posted on {{ article.locale_date }} in {{ article.category }}

+ {% if ADD_THIS_ID %} +
+ {% endif %}
{{ article.content }}
diff --git a/templates/base.html b/templates/base.html index 3b16ea6..22d51d0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -91,6 +91,9 @@ {% include "partial/ga.html" %} + {% if ADD_THIS_ID %} + + {% endif %} {% block additional_js %}{% endblock %} diff --git a/templates/page.html b/templates/page.html index 887006e..0042e99 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,4 +10,4 @@ {{ page.content }} -{% endblock %} \ No newline at end of file +{% endblock %}