For future reference, here’s the complete solution:
I created a new static page template in layouts/staticpage/single.html
with the following:
{{ define "main" }}
<main>
<div class="post">
{{ partial "single/title.html" . }}
{{ partial "single/header.html" . }}
{{ .Content }}
{{ partial "single/footer.html" . }}
</div>
</main>
{{ end }}
Now any static page placed in content
with the front matter:
—
type: “staticpage”
_build:
list: never
menu: “main”
—
yields a static page that is not listed in the blog post list, is linked from the header of the blog, and does not have an another reference.