Access parent_section title

Hi there,
I am trying to access a parent sections title such as “Blog” from within a blog post, to set the title to something like “Blog | Title of the post”. I have done a bit of googling and skimming the docs, but I can not figure out how and where to use this “parent_section” together with the “get_section()” method. Any advice I’ll greatly appreciate :smile:

I’m an extreme newbie at Zola, but here’s something that worked for me from a page:

{% set section = get_section(path=page.ancestors | last) %}

Title of the section: {{ section.title }}

I suspect there’s a more correct way. I’ve seen references to “parent_section” here and there, but I can’t find how to use it.