I want to render some content on the dev version of a site and then exclude that from the production site.
What I have tried is:
Placing the markdown files in a sub-folder below content ( e.g. content/docs/foo.md )
Using a config.toml for the production site to ignore content in that sub-folder, by using
ignoreFiles = [ “docs” ]
But the ignoreFiles is not working and content is still rendered at public/docs/foo/
I have deleted public/ before running Hugo so I know rendered content is not a remnant from before.
I have read through docs and forum and cannot see where I am going wrong.
Yes, in TOML the best way to make sure that your config options are interpreted correctly is to put them before any [table] definitions like params, permalinks, taxonomies, blackfriday, etc. Sorry, it didn’t even occur to me that might be the source of your problem.
I have the same question and using TOML too
but for me it’s not working
I means the directory I want to ignore is font-awesome-v4.7.0 which come with the theme Agency
so I tried :