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.)
I remembered the config.toml parameter to disable rendering of âkindsâ. sitewide is not a leaf bundle, authorfooter is. So treating sidewide as a post type and disabling in config.toml via
disableKinds = ['sitewide']
should do what I want, but doesnât either.
It looks like Hugo is creating the home page in this subfolder, not the authorfooter as a page. I might have a much different problem than assumed.
But basically try adding _index.md to /content/sitewide/ with the following frontmatter
url: "/"
Itâs a work around, but unfortunately Hugo doesnât let you disable list pages for specific directories at this time. (At least not to my knowledge)
disableKinds doesnât take post types as parameters you can only input the following options "page" , "home" , "section" , "taxonomy" , "term" , "RSS" , "sitemap" , "robotsTXT" , "404".
then can someone explain to me WHAT kind of pages headless works with ?
It doesnât with a leafless bundle here. I have the directory âkiddy_girl/â with _index.md = "--- headless: true bookhidden: true ---"
I donât need it to appear or be published, itâs one only role is to host a bunch of (published) pages to call upon from other pages.
But it still appears as a menu item !