From: Vladimír Vondruš Date: Wed, 2 Oct 2019 17:26:15 +0000 (+0200) Subject: pelican-theme: I thought the M_HTML_HEADER option was there always. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=d4108969172300898b1b39b848e3e867a85c6dce;p=blog.git pelican-theme: I thought the M_HTML_HEADER option was there always. But apparently not. --- 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 %}