I have a git submodule that I am adding inside the repository of my website, but I want it to be ignored, except for its README.md.
I have tried two different approaches. In both cases I am able to exclude the git submodule, but I can’t find a way to include the README and use it as a regular template.
module.exports = function (eleventyConfig) {<br></br> eleventyConfig.ignores.add('inputdir/submodule');<br></br> eleventyConfig.ignores.add('inputdir/submodule/README.md'); // added it first to be sure<br></br> eleventyConfig.ignores.delete('inputdir/submodule/README.md');<br></br>};<br></br>