I noticed my site is generating a bunch of
amp directories, which aren’t intended.
I went to check things and I found out these are the culprits:
Opportunities.es.adoc.save Metadata.es.adoc--- Table of Contents.adoc.NOT
So it’s basically left-over files, which should just be deleted, but for some reason (intentional or not) were left behind.
These get rendered in
./public/amp/user/core-modules/Opportunities.es.adoc.save ./public/amp/developer/Metadata.es.adoc--- ./public/amp/developer/Table of Contents.adoc.NOT
What’s the logic behind assuming these are
ampformat files? They aren’t.
Apart from the
config.tomlwhich let’s us disable a specific list of file extensions, is there a way of asking Hugo to ignore all unknown extensions? That would be my preferred handling of these cases.
Link to my source: