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-metasetup:- Have working
djangocms-bloginstall. - Have custom
djangocms-blogapp templates, that still has this code inbase.html:{% block meta %} {% if meta %} {% include "meta/meta.html" %} {% endif %} {% endblock meta %} - Have working configuration for
djangocms-metaapp. This includes this code inbase.htmlCMS template:<head β¦> β¦ {% include "meta/meta.html" %} β¦ </head>
- Have working
- Try to break working
djangocms-metasetup:- Remove the
{% block meta %}block of code frombase.htmlapp template (not the CMS template).
- Remove the
- Try, with more force, to break working
djangocms-metasetup:- Remove the
{% include "metaβ¦" %}line of code frombase.htmlCMS 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!