I usually use {% block %}{% endblock %}
to build my template but for the SEO plugin I'll be needing {% set %}{% endset %}
. However my pages don't seem to render. If I change it to {% block %}{% endblock %}
it works fine.
Anyone know what is causing this?
This is my base file _master.html (partly):
<body class="boxed bg-cover" style="background-image: url(img/backgrounds/street.jpg)">
<div class="global-wrap">
{% set header %}
{% endset %}
this is my index.html (partly):
{% extends "_master" %}
{% set header %}
{% include 'header.html' %}
{% endset %}
block
? That's largely a formatting preference... Templates render from the inside-out, so yourdo
would still get called before anything in the master template.