I’m sure this is something only noobs like me do, but…
I am stowing away older variants of template files inside a .do_not_use/ folder, so I can quickly swap them and test things out.
I read somewhere here that Hugo ignores folders that begin with a dot. Is this still correct? The status message “Watching for changes in…” lists such a folder, so I’m not sure.
Also: In the content folder for my gallery there are many BIG image-files that I experiment with, so this would be useful to start out small and gradually grow the gallery by moving already prepared images out of .spare/ up one level. (also .gitignore **/.spare/to prevent gigabytes from being pushed remote…)
Seems there’s some handling, but I could not find the reference in the docs.
a layout in /layouts/.unused/homd.html is read into the template cache.
I added an inline partial to that file and used it from a normal layout and the inline was executed
Not every .folder is ignored (hint use --printUnusedTemplates). So you have to take care yourself, that nothing you don’t want to - gets executed.
Just my 10 cents to the content:
i would not stuff gigabytes to my git repo and use .gitignore to not commit
hugo offers imports/mounts for something like that
i would pollute my production with experiements.
an experiment just has few files and when I’m done i cleanup
if it is bigger or lasts longer maybe a PoC site is better taking over changes to production when ready
No, be sure that’s not a noob thing
imho that’s common practice … but not for as permanent setup
Yeah no. I already learned some lessons. I split my heavily modified theme in a separate (private) repo and of course keep the „gigabytes“ of image data only local with the help of .gitignore.
That way I was able to set up a light PoC site for experimentation wrt content and site structure.
But as you said it would be nice to have something in the docs…