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

Favicons without <head> tag #29

Open
datapolitical opened this issue Dec 23, 2020 · 1 comment
Open

Favicons without <head> tag #29

datapolitical opened this issue Dec 23, 2020 · 1 comment

Comments

@datapolitical
Copy link

I'm trying to figure out how to add Favicons to the site so they load correctly in light and dark themes. Since the theme doesn't have a head tag I'm not sure how to do this.

@orion-miller
Copy link

orion-miller commented Nov 12, 2022

Looks like this was asked a long time ago, but answering in case it's of use to you or anyone having a similar issue.

If you look at the index.html file, you see in the front matter it's assigned to use the layout defined in default.html
In the default.html file you can simply add a head tag with the favicon link inside:

image

Replace the href value with the location of your icon and you will be set.
<link rel="icon" href="/assets/images/FavIcon/OM_Logo.ico">

The icon should show on the tab across any locations on your site (tested as working on mine) and shouldn't depend on whether you're using a light or dark theme.

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