We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pages are not excluded when include_tag is used - apparently only exclude_tag works
Configure as such:
theme: name: material plugins: - file-filter: filter_nav: false metadata_property: visibility include_tag: - public - search - awesome-pages - ezlinks - tags: tags_file: tags.md
Create a page with this frontmatter:
visibility: public
The page will still be included in the build website.
No response
0.2.0
Linux
3.11.1
1.5.3
Error 404 when trying to access the "private" page i.e. any page WITHOUT the visibility:public in the frontmatter
visibility:public
The text was updated successfully, but these errors were encountered:
Hi @nonsonogio It's expected behavior, see: https://github.com/DariuszPorowski/mkdocs-file-filter-plugin?tab=readme-ov-file#conflict-behavior
"include has higher priority over exclude"
You have to add to your config exclude_glob or exclude_regex - depends on the case. i.e.:
exclude_glob
exclude_regex
exclude_regex: - '.*\.md$'
Sorry, something went wrong.
Hello Dariusz, many thanks for clarifications, I confirm it works as you say.
No branches or pull requests
🐛 What happened?
Pages are not excluded when include_tag is used - apparently only exclude_tag works
🔬 How to reproduce?
Configure as such:
Create a page with this frontmatter:
The page will still be included in the build website.
🏗️ Code Sample / Log
No response
🌌 Environment (plugin version)
0.2.0
🌌 Environment (OS)
Linux
🌌 Environment (Python)
3.11.1
🌌 Environment (MkDocs)
1.5.3
📷 Screenshots
No response
📈 Expected behavior
Error 404 when trying to access the "private" page i.e. any page WITHOUT the
visibility:public
in the frontmatter📎 Additional context
No response
📜 Code of Conduct
The text was updated successfully, but these errors were encountered: