pelican-plugins icon indicating copy to clipboard operation
pelican-plugins copied to clipboard

Plugin pelican-ert, problem with html5validator and very short articles

Open kappa-wingman opened this issue 4 years ago • 1 comments

ert.py, line 32: time = '< 1 min'

consider changing it to time = '< 1 min'

If the article is very short (ert is < 1min), the < symbol would cause problem with htm5validator.

kappa-wingman avatar May 27 '20 15:05 kappa-wingman

Additional info You can escape the output with Jinja2 {% if article.ert %} <strong>{{ article.ert|escape }} </strong> {% endif %}

kappa-wingman avatar Jun 05 '20 20:06 kappa-wingman