djangocms-blog: How Does the Meta Block in Base Template Work?
Description
I am confused by purpose of the meta
block in base.html
template code.
Steps to reproduce
- Confirm working
djangocms-meta
setup:- Have working
djangocms-blog
install. - Have custom
djangocms-blog
app templates, that still has this code inbase.html
:{% block meta %} {% if meta %} {% include "meta/meta.html" %} {% endif %} {% endblock meta %}
- Have working configuration for
djangocms-meta
app. This includes this code inbase.html
CMS template:<head β¦> β¦ {% include "meta/meta.html" %} β¦ </head>
- Have working
- Try to break working
djangocms-meta
setup:- Remove the
{% block meta %}
block of code frombase.html
app template (not the CMS template).
- Remove the
- Try, with more force, to break working
djangocms-meta
setup:- Remove the
{% include "metaβ¦" %}
line of code frombase.html
CMS template (not the app template).
- Remove the
Expected result
- π‘ The code renders something somewhere.
- π‘ Removal of the code does not render something somewhere.
- π‘ Removal of the code does not render something somewhere.
Actual result
- β The code renders
<meta>
tags in the<head>
. - π€·ββοΈ Removal of the code seems to render everything the same (as in step 1) everywhere.
- β Removal of the code does not render
<meta>
tags in the<head>
.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (16 by maintainers)
awesome!
i updated #630 to fix the base template
Thanks a lot for your patience and your super detailed reports!