Add block name in endblock

This commit is contained in:
Frederik Elwert 2025-01-15 11:37:44 +01:00
commit af3c2ed0cf

View file

@ -44,7 +44,7 @@
<header> <header>
{% block header %} {% block header %}
<hgroup><h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}</hgroup> <hgroup><h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}</hgroup>
{% endblock %} {% endblock header %}
{% block nav %} {% block nav %}
<nav><ul> <nav><ul>
{% for title, link in MENUITEMS %} {% for title, link in MENUITEMS %}
@ -61,11 +61,11 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul></nav> </ul></nav>
{% endblock %} {% endblock nav %}
</header> </header>
<main> <main>
{% block content %} {% block content %}
{% endblock %} {% endblock content %}
</main> </main>
<footer> <footer>
{% block footer %} {% block footer %}
@ -73,8 +73,8 @@
Proudly powered by <a rel="nofollow" href="https://getpelican.com/">Pelican</a>, Proudly powered by <a rel="nofollow" href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a rel="nofollow" href="https://www.python.org/">Python</a>. which takes great advantage of <a rel="nofollow" href="https://www.python.org/">Python</a>.
</address> </address>
{% endblock %} {% endblock footer %}
</footer> </footer>
{% endblock %} {% endblock body %}
</body> </body>
</html> </html>