chiark / gitweb /
m.htmlsanity: properly use DEFAULT_LANG and :lang: metadata.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 29 Nov 2017 23:29:29 +0000 (00:29 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 29 Nov 2017 23:29:29 +0000 (00:29 +0100)
commit4d4ddf0a04e2749a2e6327eb80b7d94beff4d06c
treee2a05a5bdad71382320880c5595a3588efe92675
parent06c71c22962ff49de5661e07a6ee37dc3b51c717
m.htmlsanity: properly use DEFAULT_LANG and :lang: metadata.

There's a patch to Pelican at https://github.com/getpelican/pelican/pull/2256
which propagates DEFAULT_LANG to docutils, but until that's accepted
and released, I'm detecting its presence and falling back to
monkey-patched version that enables the same from within the
m.htmlsanity plugin.

Besides that, the per-page/per-article :lang: metadata are also taken
into account. The docs were updated to reflect this.
doc/plugins/htmlsanity.rst
pelican-plugins/m/htmlsanity.py