I’m trying to target a bunch of pages inside subfolders using cascade but not all of the pages use the template - even in the same folder. And I can’t see a pattern in the ones which fail.
I’ve added a cascade to content/en/hdeet_reference/_index.md specifying the use of the “reference” template.
If I build the site, a page like public/hdeet_reference/calculated_data/multicycleresults/cycle.html uses the templates in layouts/partials/reference - the word HELLO appears before the title and there’s a table in the content.
But public/hdeet_reference/calculated_data/multicycleresults/cycleendtime.html in the same folder doesn’t use it.
Error: Error building site: TOCSS: failed to transform “scss/main.scss” (text/x-scss): “/home/jmooring/temp/hdeet-cascade-bug/themes/docsy/assets/scss/main.scss:6:1”: File to import not found or unreadable: …/vendor/bootstrap/scss/bootstrap.
I commented out the call to the head-css partial to bypass the error and continue troubleshooting.
The problem is intermittent, and is caused by conflicting cascade directives.
So in one place you’re setting the type to reference, and in another your’re setting the type to docs. Due to concurrency (rendering pages in parallel) you have no control over which page will be rendered first… hence the intermittent nature of the behavior.
Remove the conflicting directives.
You might want to move them all to your site configuration where you can see them all in one place.