I am pretty sure I misunderstand how headless works.
I have the following folder structure:
/content/folder1
/content/folder2
/content/sitewide/authorfooter/index.md
/content/folder3
the index.md
of authorfooter
has a front matter headless: true
.
The documentation (https://gohugo.io/content-management/page-bundles/#headless-bundle) says:
Only leaf bundles can be made headless.
and
A headless bundle is a bundle that is configured to not get published anywhere
It does though Running
hugo
on my repo creates a folderstructure for sitewide in my site. What am I overlooking? The authorfooter is a widget I embed in all pages in the sidebar. Donât ask why itâs called footer and in the sidebar. âThis theme developed organically ;)â
Is there any way tell hugo to ignore the whole folder sitewide, but have the pages below available for {{ with .Site.GetPage "sitewide/authorfooter.md" }}
?
(I tried /content/sitewide/authorfooter.md before I saw that âleaf bundlesâ part above. Same result.)