Skip to content

Commit

Permalink
fix: update favicon images
Browse files Browse the repository at this point in the history
Add svg favicon images for dark and light mode

refs acid-info/guide.logos.co#16
  • Loading branch information
jeangovil committed Oct 20, 2023
1 parent 5addd3a commit 655cd48
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 0 deletions.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions packages/logos-docusaurus-theme/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,29 @@ export default function logosTheme(
async contentLoaded(args) {
await createAuthorRoutes(context, args)
},

injectHtmlTags: ({}) => {
return {
headTags: [
{
tagName: 'link',
attributes: {
rel: 'alternate icon',
type: 'image/png',
href: '/theme/image/favicon.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/svg+xml',
href: '/theme/image/favicon.svg',
},
},
],
}
},
}
}

Expand Down

0 comments on commit 655cd48

Please sign in to comment.