How to use twig parent function on nested blocks I'm not sure if it is appropriate to post twig questions on this forum? I have a question about nested blocks and using the twig "parent" function. I'm running into unexpected behaviour on a craft site i'm building. 

My parent and child template layouts.

{# Parent Template #}
{% block breadcrumbs %}
    {% block crumb %}

    {% endblock %}
{% endblock %}

{# Child Template #}
{% block breadcrumbs %}
    {{ parent() }}
    {% block crumb %}
        My custom content
    {% endblock %}
{% endblock %}


What I'm trying to achieve


On my child template, I'm trying to retain the content in block breadcrumbs but override the content in block crumb.
However when I use the parent function in my child template, it does not respect "my custom content" and uses the block crumb content defined in the parent template.
Try to keep the blocks separate in your child template. That's how it's done in a comparable example in the Twig Documentation.

Parent Template:

{% block breadcrumbs %}
    {% block crumb %} 
    {% endblock %}
{% endblock %}


Child Template:

{% extends "parent.html" %}

{% block breadcrumbs %}
    {{ parent() }}
{% endblock %}

{% block crumb %}
    My custom content
{% endblock %}


.

Edit:

If you're not adding any content to your "breadcrumbs" block from the child template, you can also omit that block completely:

{% extends "parent.html" %}

{% block crumb %}
    My custom content
{% endblock %}