Like the title says I’m trying to use ignoreFiles to not render a README.md
file I have inside a section folder.
I have tried using the following without any luck:
ignoreFiles = ['README.md', '/content/docs/README.md', '\content\docs\README.md', '^README'],
What am I doing wrong? Thanks.
regis
2
There might be a better way to do this but top of my head. Add this to your site’s config.yaml:
cascade:
- _target:
path: /docs/README.*
kind: page
_build:
render: never
list: never
You could also add it to the section’s _index.md
's front matter and make the path relative (untested)
1 Like
Thanks for pointing this out, since I am using toml this is what I ended up using in case anyone else needs to do something similar:
[[cascade]]
[cascade._target]
path = "/docs/README.*"
[cascade._build]
render = "never"
list = "never"
regis
4
while you’re there would you try including the full file path and (/docs/README.md
) and see if it works?
Not sure why I assume it wouldn’t.
system
Closed
5
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.