# HG changeset patch # User Thierry Florac # Date 1538738435 -7200 # Node ID de718ccf8bccb0d4289742ac09fc892438e136d6 # Parent 77ec84eff41cf14d854303f927b78202ce513e65 Remove H2 tag when title is empty diff -r 77ec84eff41c -r de718ccf8bcc src/pyams_default_theme/component/paragraph/templates/html-default.pt --- a/src/pyams_default_theme/component/paragraph/templates/html-default.pt Wed Oct 03 19:27:17 2018 +0200 +++ b/src/pyams_default_theme/component/paragraph/templates/html-default.pt Fri Oct 05 13:20:35 2018 +0200 @@ -2,7 +2,7 @@ position renderer.position if renderer is not None else None;" switch="position"> ${structure:view.render_illustration()} -

${view.title}

+

${view.title}

${structure:view.render_illustration()}
${structure:tales:html(view.body, 'oid_to_href')}
${structure:view.render_illustration()}