From: Vladimír Vondruš Date: Sat, 16 Dec 2017 01:37:42 +0000 (+0100) Subject: theme: provide social meta tags for the index/archive page. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=2e76437f4b111ea96753b6579a2163815f2b7950;p=blog.git theme: provide social meta tags for the index/archive page. --- diff --git a/pelican-theme/templates/archives.html b/pelican-theme/templates/archives.html index 29422b4c..08fe337a 100644 --- a/pelican-theme/templates/archives.html +++ b/pelican-theme/templates/archives.html @@ -11,6 +11,18 @@ {% endif %} {% endblock %} +{% block social %} + {{- super() -}} + {# this has to be here otherwise the spacing is all wrong. fuck. #} + + + {% block social_url %} + + {% endblock %} + + +{% endblock %} + {% block content %}
{% if articles_page %} diff --git a/pelican-theme/templates/index.html b/pelican-theme/templates/index.html index 34d21519..266946b1 100644 --- a/pelican-theme/templates/index.html +++ b/pelican-theme/templates/index.html @@ -1 +1,5 @@ {% extends "archives.html" %} + +{% block social_url %} + +{% endblock %} diff --git a/pelican-theme/test/blog/archives.html b/pelican-theme/test/blog/archives.html new file mode 100644 index 00000000..b98e809e --- /dev/null +++ b/pelican-theme/test/blog/archives.html @@ -0,0 +1,84 @@ + + + + + A Pelican Blog + + + + + + + + + + + +
+
+
+
+
+ + +
+ +
+
+
+ + diff --git a/pelican-theme/test/blog/index.html b/pelican-theme/test/blog/index.html index b763cbd3..39e32393 100644 --- a/pelican-theme/test/blog/index.html +++ b/pelican-theme/test/blog/index.html @@ -7,6 +7,11 @@ + + + + +