Skip to content
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

How to override favicons and logo? #106

Closed
ddogfoodd opened this issue Apr 12, 2023 · 3 comments
Closed

How to override favicons and logo? #106

ddogfoodd opened this issue Apr 12, 2023 · 3 comments

Comments

@ddogfoodd
Copy link
Contributor

How do I override the favicons and logo?
I thought it would automatically use favicons if they are provided in the base static dir if they have the same name as those in the themes/abridge/static dir, but that doesn't seem to work?

Is there a way to set this in the config.toml or do it any other way than replace the files in the themes dir? I would want to avoid this as this makes it more annoying to update the themes git submodule.

@ddogfoodd
Copy link
Contributor Author

Nvm I made a mistake by mixing up the static and content/static directories. It does override if files are in the static dir.

@Jieiku
Copy link
Owner

Jieiku commented Apr 12, 2023

yep, you can override the files directly, you can also disable some of them in the config.toml file if you comment them out:

#favicon_theme_color = "#333333"
#favicon_ms_color = "#333333"
#favicon_webmanifest = "site.webmanifest" # Used for android-chrome-512x512.png and android-chrome-192x192.png
#favicon_mask = "safari-pinned-tab.svg" # safari-pinned-tab.svg
#favicon_mask_color = "#ff9900"
favicon180 = "apple-touch-icon.png" # apple-touch-icon.png
favicon32 = "favicon-32x32.png" # favicon-32x32.png
favicon16 = "favicon-16x16.png" # favicon-16x16.png

@Jieiku
Copy link
Owner

Jieiku commented Oct 23, 2024

Can also exclude them:

add this to your config.toml:

ignored_static = ["apple-touch-icon.png","banner.png","safari-pinned-tab.svg","favicon*","m*.png","android-chrome*png"]

found the answer here: https://www.getzola.org/documentation/getting-started/configuration/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants