From 237ae61334a1a5001e778486094fc2817c822bac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 16 Dec 2017 12:24:58 +0100 Subject: [PATCH] theme: provide social meta tags for category/author/tag pages. --- pelican-theme/templates/author.html | 6 ++++++ pelican-theme/templates/base_blog_section.html | 8 ++++++++ pelican-theme/templates/category.html | 6 ++++++ pelican-theme/templates/tag.html | 6 ++++++ pelican-theme/test/blog/author-explicit-author.html | 5 +++++ pelican-theme/test/blog/category-another-category.html | 5 +++++ pelican-theme/test/blog/tag-third.html | 5 +++++ .../test/blog_hide_summary_both/category-misc.html | 5 +++++ .../test/blog_hide_summary_global/category-misc.html | 5 +++++ pelican-theme/test/blog_minimal/category-misc.html | 5 +++++ pelican-theme/test/blog_pagination/category-misc.html | 5 +++++ pelican-theme/test/blog_pagination/category-misc2.html | 5 +++++ pelican-theme/test/blog_pagination/category-misc3.html | 5 +++++ 13 files changed, 71 insertions(+) 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 @@ + + + + +