From d4108969172300898b1b39b848e3e867a85c6dce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 2 Oct 2019 19:26:15 +0200 Subject: [PATCH] pelican-theme: I thought the M_HTML_HEADER option was there always. But apparently not. --- doc/themes/pelican.rst | 3 +++ pelican-theme/templates/base.html | 3 +++ pelican-theme/test/layout/features.html | 3 +++ pelican-theme/test/layout/guest-post-howto.html | 3 +++ pelican-theme/test/layout/index.html | 3 +++ pelican-theme/test/layout/showcase-requirements.html | 3 +++ pelican-theme/test/test_layout.py | 3 +++ 7 files changed, 21 insertions(+) diff --git a/doc/themes/pelican.rst b/doc/themes/pelican.rst index 929abeed..9e51b4bd 100644 --- a/doc/themes/pelican.rst +++ b/doc/themes/pelican.rst @@ -220,6 +220,9 @@ neither is specified no :html:`` tag is rendered. Example configuration: M_FAVICON = ('favicon.ico', 'image/x-ico') M_BLOG_FAVICON = ('favicon-blog.png', 'image/png') +Arbitrary HTML content can be added at the end of the :html:`` via the +:py:`M_HTML_HEADER` option. + `Top navbar`_ ------------- diff --git a/pelican-theme/templates/base.html b/pelican-theme/templates/base.html index 789d31a2..9c602e40 100644 --- a/pelican-theme/templates/base.html +++ b/pelican-theme/templates/base.html @@ -38,6 +38,9 @@ {% endif %} {% block extra %} {% endblock extra %} + {% if M_HTML_HEADER %} + {{ M_HTML_HEADER|rtrim|indent(2) }} + {% endif %}