Wrap notifications HTML code into a block

This block is override in error pages to be none and do not show
notifications on these pages.
humitos/mkdocs/theme-config
Manuel Kaufmann 2018-06-19 17:07:40 -03:00
parent 017f5817e1
commit a341a4482f
4 changed files with 25 additions and 15 deletions

View File

@ -10,6 +10,8 @@
{% include "error_header.html" %}
{% endblock %}
{% block notify %}{% endblock %}
{# Hide the language select form so we don't set a CSRF cookie #}
{% block language-select-form %}{% endblock %}

View File

@ -10,6 +10,8 @@
{% include "error_header.html" %}
{% endblock %}
{% block notify %}{% endblock %}
{# Hide the language select form so we don't set a CSRF cookie #}
{% block language-select-form %}{% endblock %}

View File

@ -9,6 +9,8 @@
{% include "error_header.html" %}
{% endblock %}
{% block notify %}{% endblock %}
{# Hide the language select form so we don't set a CSRF cookie #}
{% block language-select-form %}{% endblock %}

View File

@ -84,6 +84,8 @@
<div id="content">
<div class="wrapper">
<!-- BEGIN notify -->
{% block notify %}
{% if messages %}
<ul class="notifications">
{% for message in messages %}
@ -93,6 +95,8 @@
{% endfor %}
</ul>
{% endif %}
{% endblock %}
<!-- END notify -->
{% block content-header %}
{% endblock %}