Skip to content

Commit

Permalink
add favicon metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Mar 2, 2024
1 parent 1c92742 commit 23cbce2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ const config: Config = {
defaultLocale: 'en',
locales: ['en'],
},
headTags: [
// Favicon
{ tagName: 'link', attributes: { rel: 'shortcut icon', href: '/favicon/favicon.ico' } },
{ tagName: 'link', attributes: { rel: 'apple-touch-icon', sizes: '180x180', href: '/favicon/apple-touch-icon.png' } },
{ tagName: 'link', attributes: { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon/icon_32.png' } },
{ tagName: 'link', attributes: { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon/icon_16.png' } },
{ tagName: 'link', attributes: { rel: 'manifest', href: '/favicon/site.webmanifest' } },
{ tagName: 'link', attributes: { rel: 'mask-icon', href: '/favicon/safari-pinned-tab.svg', color: '#edd323' } },
{ tagName: 'meta', attributes: { name: 'msapplication-TileColor', content: '#000000' } },
{ tagName: 'meta', attributes: { name: 'theme-color', content: '#ffffff' } },
],
markdown: {
format: 'detect'
},
Expand Down

0 comments on commit 23cbce2

Please sign in to comment.