I have a set of files in content folder in this order
/content/folder1/folder2/service1.html /content/folder1/folder2/service2.html /content/folder1/folder2/service3.html
out of these, I would like to ignore the rendering of service1.html and service2.html as and when I require. To this extent, I have tried various regex options using the
ignorefiles options in config toml file. Also, the ignorefiles parameter is just below the
title parameter…right at the top…before any other parameter is declared.
ignorefiles = [ "\\w*service1.html\b", "\\w*service2.html\b" ] ignorefiles = [ "*/*/service1.html", "*/*/service2.html" ]
but they don’t get ignored and keep coming in the public folder.
Is there a way to ignore some folders or files in Hugo while rendering them