Sometimes I can use an HTML style comment at the start of a Twig template file that works fine:
<!-- /templates/blog.html.twig -->
{% embed 'partials/base.html.twig' %}
But sometimes Grav throws an error if I do:
<!-- /templates/page.html.twig -->
{% extends 'partials/base.html.twig' %}
That give me this error:
An exception has been thrown during the rendering of a template ("Undefined offset: 0") in "partials/navigation.html.twig" at line 25.
Are there circumstances that I can't use such a comment?