Hugo not serving dotfiles

I know that Hugo by default ignores dotfiles but I need to serve a folder with a dot.

Is it possible? I know that Jekyll has the keywords include/exclude, does Hugo have something equivalent? I found ‘ignoreFiles’ but I need the opposite :wink:

I’m trying to add a static/.well-known/security.txt file

Are you sure it doesn’t just work™? I have a static/.well-known/file.txt that ends up in public/.well-known/file.txt each time I rebuild.

2 Likes

I don’t know what I did but you are absolutely correct. It does work as expected :+1: