Is it possible to ignore directories inside a staticDir?

ignoreFiles is only relevant to the content directory. I posted about that here:

It would be useful if Hugo had other ignore variables like:

  • ignoreStaticFiles
  • ignoreLayoutFiles
  • ignoreConfigFiles
  • ignoreAssetFiles

The most useful would be ignoreStaticFiles since all those files get automatically copied to the publishDir.

1 Like