Structure Nav: Output "Section" Title on both Landing and Decedents
You can test for the entry's level property. Something like the following.

{% if entry.level == 1 %}
    &lt;h1&gt;{{ entry.title }}&lt;/h1&gt;
{% else %}
    &lt;h1&gt;{{ entry.ancestors.first.title }}&lt;/h1&gt;
{% endif %}