From 2e76437f4b111ea96753b6579a2163815f2b7950 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 16 Dec 2017 02:37:42 +0100 Subject: [PATCH] theme: provide social meta tags for the index/archive page. --- pelican-theme/templates/archives.html | 12 +++ pelican-theme/templates/index.html | 4 + pelican-theme/test/blog/archives.html | 84 +++++++++++++++++ pelican-theme/test/blog/index.html | 5 ++ .../test/blog_author_list/index.html | 5 ++ .../test/blog_collapse_first_both/index.html | 5 ++ .../index.html | 5 ++ .../index.html | 5 ++ .../blog_collapse_first_global/index.html | 5 ++ .../index.html | 5 ++ .../index.html | 5 ++ .../test/blog_footer_links/index.html | 5 ++ .../test/blog_hide_summary_both/index.html | 5 ++ .../test/blog_hide_summary_global/index.html | 5 ++ .../test/blog_html_escape/archives.html | 89 +++++++++++++++++++ .../test/blog_html_escape/archives2.html | 86 ++++++++++++++++++ .../test/blog_html_escape/index.html | 5 ++ .../test/blog_html_escape/index2.html | 5 ++ pelican-theme/test/blog_minimal/index.html | 5 ++ .../test/blog_modified_date/index.html | 5 ++ pelican-theme/test/blog_pagination/index.html | 5 ++ .../test/blog_pagination/index2.html | 5 ++ .../test/blog_pagination/index3.html | 5 ++ .../test/blog_pagination_disabled/index.html | 5 ++ pelican-theme/test/layout/index.html | 5 ++ .../test/layout_disable_blog_links/index.html | 5 ++ .../test/layout_disable_fine_print/index.html | 5 ++ .../test/layout_html_escape/index.html | 5 ++ pelican-theme/test/layout_minimal/index.html | 5 ++ .../test/layout_no_footer/index.html | 5 ++ .../test/layout_one_column_navbar/index.html | 5 ++ pelican-theme/test/test_blog.py | 13 ++- pelican-theme/test/test_layout.py | 1 - 33 files changed, 414 insertions(+), 5 deletions(-) create mode 100644 pelican-theme/test/blog/archives.html create mode 100644 pelican-theme/test/blog_html_escape/archives.html create mode 100644 pelican-theme/test/blog_html_escape/archives2.html 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 @@ + + + + +