From: Vladimír Vondruš Date: Sat, 16 Dec 2017 11:24:58 +0000 (+0100) Subject: theme: provide social meta tags for category/author/tag pages. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=237ae61334a1a5001e778486094fc2817c822bac;p=blog.git theme: provide social meta tags for category/author/tag pages. --- diff --git a/pelican-theme/templates/author.html b/pelican-theme/templates/author.html index 07b5e8c4..6ea84ae9 100644 --- a/pelican-theme/templates/author.html +++ b/pelican-theme/templates/author.html @@ -2,6 +2,12 @@ {% block title %}Posts by {{ author|e }} | {{ M_BLOG_NAME|e }}{% endblock %} +{% block social_title_url %} + + + +{% endblock %} + {% block content_title %}
Showing only posts by {{ author|e }}. Show all posts. diff --git a/pelican-theme/templates/base_blog_section.html b/pelican-theme/templates/base_blog_section.html index 4717235c..fb02ccdb 100644 --- a/pelican-theme/templates/base_blog_section.html +++ b/pelican-theme/templates/base_blog_section.html @@ -9,6 +9,14 @@ {% endif %} {% endblock %} +{% block social %} + {{- super() -}} + {% block social_title_url %} + {% endblock social_title_url %} + + +{% endblock %} + {% block content %}
{% block content_title %} diff --git a/pelican-theme/templates/category.html b/pelican-theme/templates/category.html index e7e4d237..a92f43b9 100644 --- a/pelican-theme/templates/category.html +++ b/pelican-theme/templates/category.html @@ -2,6 +2,12 @@ {% block title %}{{ category|e }} | {{ M_BLOG_NAME|e }}{% endblock %} +{% block social_title_url %} + + + +{% endblock %} + {% block content_title %}
Showing only posts in {{ category|e }}. Show all posts. diff --git a/pelican-theme/templates/tag.html b/pelican-theme/templates/tag.html index 0f4e83b6..37b65c69 100644 --- a/pelican-theme/templates/tag.html +++ b/pelican-theme/templates/tag.html @@ -2,6 +2,12 @@ {% block title %}Posts tagged {{ tag|e }} | {{ M_BLOG_NAME|e }}{% endblock %} +{% block social_title_url %} + + + +{% endblock %} + {% block content_title %}
Showing only posts tagged {{ tag|e }}. Show all posts. diff --git a/pelican-theme/test/blog/author-explicit-author.html b/pelican-theme/test/blog/author-explicit-author.html index ecb31b26..86e885e3 100644 --- a/pelican-theme/test/blog/author-explicit-author.html +++ b/pelican-theme/test/blog/author-explicit-author.html @@ -7,6 +7,11 @@ + + + + +