-
Notifications
You must be signed in to change notification settings - Fork 967
New issue
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
Add ignored_static
similar to ignore_content
but for the static folder
#1925
Comments
I've tried with one one of the ignored_content testcase and it seems to work as expected, that's weird.
|
Any updates? |
Re-tested with v0.16.1 on Win10 and Debian 11 running on WSL2. File Config file: base_url = "http://localhost/"
ignored_content = ["*.icc", "readme.*", "Readme.*", "README.*"]
compile_sass = false
build_search_index = false
[markdown]
highlight_code = false |
Ah |
Wouldn't it make sense to use it for both locations? |
It was initially meant to not include some files that are artifacts of building pages (like notes or whatever). I don't think it makes sense to have it filter the static folder which has always been "just copy all the content in there" |
OK, can it be made optional? Plenty of use-cases where certain content in |
It would be a new config variable, |
Perfect. |
ignored_content
does not workignored_static
similar to ignore_content
but for the static folder
I will work on this one. |
Sorry to nag, but with #2209 merged, is there anything left to do? |
Bug Report
Environment
Zola version: v0.15.3
Expected Behavior
Should exclude
foobar.icc
andREADME.md
.Current Behavior
Both files are included in the
output_dir
.Step to reproduce
Running as following:
P.S. While we are at it, can
ignored_content
support regexp? Would allow much neater?readme.*
and such.The text was updated successfully, but these errors were encountered: