Skip to content

Commit a218bde

Browse files
authored
feat(#337 | docs): support dark/light mode favicon for Hypergraph logo (#406)
1 parent 014dcba commit a218bde

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/docusaurus.config.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { themes as prismThemes } from 'prism-react-renderer';
1212
const config = {
1313
title: 'Hypergraph',
1414
tagline: 'Framework for building web3 apps',
15-
favicon: 'img/HypergraphLogo.png',
1615

1716
// Set the production url of your site here
1817
url: 'https://graphprotocol.github.io',
@@ -44,6 +43,24 @@ const config = {
4443
content: '536FEAE3B63DD658',
4544
},
4645
},
46+
{
47+
tagName: 'link',
48+
attributes: {
49+
rel: 'icon',
50+
type: 'image/png',
51+
href: '/img/HypergraphLogoDark.png',
52+
media: '(prefers-color-scheme: light)',
53+
},
54+
},
55+
{
56+
tagName: 'link',
57+
attributes: {
58+
rel: 'icon',
59+
type: 'image/png',
60+
href: '/img/HypergraphLogo.png',
61+
media: '(prefers-color-scheme: dark)',
62+
},
63+
},
4764
],
4865

4966
plugins: [
1.89 KB
Loading

0 commit comments

Comments
 (0)