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

Update base.html.twig handling favicon image #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

4evermaat
Copy link

You create a new folder in the /user/pages/images if it is not already there and stick all of your favicons there, you can use any file format the browser accepts, including .ico (usually you use .ico or .png for favicon images) Then if you want to use a custom favicon, on the frontmatter of the page you put this parameter
custom_favicon: whatever.ico
If the custom_favicon header variable is not there, it will use the default favicon.ico.

You can use theme://images/ if you prefer to keep everything in the theme images folder, but it is subject to rewriting if you update theme. User folder or even individual pages folders are more permanent for custom content.

You create a new folder in the `/user/pages/images` if it is not already there and stick all of your favicons there, you can use any file format the browser accepts, including .ico (usually you use .ico or .png for favicon images) Then if you want to use a custom favicon, on the frontmatter of the page you put this parameter
`custom_favicon: whatever.ico`
If the `custom_favicon` header variable is not there, it will use the default favicon.ico.

You can use `theme://images/` if you prefer to keep everything in the theme images folder, but it is subject to rewriting if you update theme.  User folder or even individual pages folders are more permanent for custom content.
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

Successfully merging this pull request may close these issues.

1 participant