-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Excluding unused favicons from being published? #211
Comments
add this to your config.toml: #ignore files
ignored_static = ["apple-touch-icon.png","banner.png","safari-pinned-tab.svg","favicon*","m*.png","android-chrome*png"] Found the answer on this page: https://www.getzola.org/documentation/getting-started/configuration/ |
I did not test if this excludes it properly from Will test that later this evening, but it did properly exclude them from the public folder after a zola build. EDIT: |
I opened a report here: getzola/zola#2677 Short of creating empty files to override the ones in the theme I have no idea if this is possible. |
Thank you very much, appreciated! |
I have added a new array You could use this value: pwa_IGNORE_FILES = ["_headers","sw.min.js","sw.js","android-chrome-192x192.png","android-chrome-512x512.png","apple-touch-icon.png","favicon-16x16.png","favicon-32x32.png","favicon.ico","m48.png","m72.png","m96.png","m128.png","m192.png","m384.png","m512.png","m1024.png","mstile-150x150.png"] The purpose of In order to modify the If you create empty files in your sites main static folder, they will override the files in the theme with your empty files. If you do these things then the files will no longer be listed in the I have no way to prevent the files from being copied over entirely, so the best you can do is override them with empty files unless Zola adds provisions to ignore files within the theme, but this solution should suffice for now. |
Hi, thanks for the great theme.
I have found out to override my
favicon.svg
(I saw the other issues on this) viastatic/favicon.svg
and the relatedconfig.toml
setting. That's fine, and I assume that should be sufficient for all scenarios?But
zola build
still includes the unused icons/imagery:And they're referenced in the
manifest/sw.js
files.Is there a way to disable them completely?
Thanks, sorry in advance if I misunderstand something (I did try to read the docs) and some of these are required indeed.
The text was updated successfully, but these errors were encountered: