(sorry to make new thread - but the old one closed because of the 2 day time out)
This is a follow on to: Excluding Folders in Static
Mainly, I wanted to thank @jmooring for being so helpful.
But also to point at a small thing that I still can’t figure out how to do with the mounts system (as opposed to the old staticDir
approach):
The problem is that there is a long list of directories. Only one of them is different between configurations. Using this scheme, I need to repeat that long list in both of the TOML files (note how you repeated static).
I had hoped that I could have the default list in the “default” toml file, and only have the over-ride folder in the “overlay” toml file. (I load a second toml file after the first from the command line when I need both).
This is how it used to work… The default config.toml
specified both staticDir
and staticDir2
, and the overlay only over-wrote staticDir
;
Having to repeat isn’t the end of the world. I can also see how going forward, the mounting system allows me to be more strategic in how I use mounts.
Again, thank you for your help. The willingness of the community to help is a really big part of why I love Hugo. Hugo lets me build crazy things like the class workbooks, but it also has the community to save me when I try to do something that is too crazy.
Oh, by the way, you can see last week’s example solution (where this is applied) at: GitHub - CS559-Spring23/Workbook01-Solution: Sample Solution for 2023 Workbook 1 or https://cs559-spring23.github.io/Workbook01-Solution/ - the students don’t know that this was built with Hugo.
Oh… and just for the record…
The file names need to be in the right directory… so I had to do:
excludeFiles = [".git","*/.git","*/*/.git"]