You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought the ignored_static static feature would work perfectly for this. The only way you can currently use the ignored_static feature is to directly modify and use a theme.
Current Behavior
If you use the theme as a submodule for another site, then the option does not work, and the favicons from the theme are still copied over.
Step to reproduce
You can set the option in the theme directly, and it will work:
I was hoping there was a way for people to exclude files in the static folder of the theme...
If the ignored_static is not meant to do that, then maybe we need an ignored_static_theme option.
Edit: I include a full set of favicons in the abridge theme, and often people only want to create 1 favicon or none at all, but all those favicons from the theme still get copied over, unless they create their own favicon to replace every single one.
andrew-d
added a commit
to MakeNorth/makenorth.github.io
that referenced
this issue
Oct 27, 2024
1. Don't copy large math files to the output directory since they're not
used; we create an empty file to "shadow" the ones in the theme. See
getzola/zola#2677 for more.
2. Move the .gitignore for public/ to the root since the directory is
recreated by the 'zola serve' command.
Signed-off-by: Andrew Dunham <[email protected]>
Bug Report
ignored_static working only if you run a theme directly, Does Not work if you use the theme as a submodule
Environment
Zola version: 0.19.2
Expected Behavior
I have had a few requests to disable/omit the favicons in my theme:
Jieiku/abridge#211
Jieiku/abridge#174
Jieiku/abridge#106
I thought the
ignored_static
static feature would work perfectly for this. The only way you can currently use theignored_static
feature is to directly modify and use a theme.Current Behavior
If you use the theme as a submodule for another site, then the option does not work, and the favicons from the theme are still copied over.
Step to reproduce
You can set the option in the theme directly, and it will work:
ignored_static = ["apple-touch-icon.png","banner.png","safari-pinned-tab.svg","favicon*","m*.png","android-chrome*png"]
Next try using the theme as a submodule for a new site, the static favicon files still get copied over to public after zola build.
The text was updated successfully, but these errors were encountered: