Skip to content

Commit

Permalink
templates/wiki_page: Remove <p> element
Browse files Browse the repository at this point in the history
The <p> element at this level are wrong, because the StreamField blocks
will add their own <p> elements and nested <p> elements are not legal.
This structural errors makes the fallback text in a <video> element
visible, even when the video is playable.

Remove <p> element.
  • Loading branch information
donald committed Jan 10, 2021
1 parent 00b70dc commit e0cc089
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mpicms/templates/base/wiki_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ <h2 class="title is-2">{{ page.title }}</h2>
{% endif %}

<div id="content" class="content">
<p>
{% for block in page.body %}
{% include_block block %}
{% endfor %}
</p>
</div>
{% endblock %}
{% endblock %}

0 comments on commit e0cc089

Please sign in to comment.