mirror of
https://github.com/massgravel/massgrave.dev.git
synced 2024-11-23 15:00:54 +07:00
Enable respectPrefersColorScheme
This commit is contained in:
parent
a4e060d0b6
commit
368630f274
@ -73,6 +73,11 @@ const config = {
|
|||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
colorMode: {
|
||||||
|
defaultMode: 'light',
|
||||||
|
disableSwitch: false,
|
||||||
|
respectPrefersColorScheme: true,
|
||||||
|
},
|
||||||
// Replace with your project's social card
|
// Replace with your project's social card
|
||||||
image: 'img/card.png',
|
image: 'img/card.png',
|
||||||
navbar: {
|
navbar: {
|
||||||
@ -112,7 +117,7 @@ const config = {
|
|||||||
position: 'left',
|
position: 'left',
|
||||||
label: 'Credits',
|
label: 'Credits',
|
||||||
},
|
},
|
||||||
{to: '/blog', label: 'Blog', position: 'right'},
|
{ to: '/blog', label: 'Blog', position: 'right' },
|
||||||
{
|
{
|
||||||
to: '/contactus',
|
to: '/contactus',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
|
Loading…
Reference in New Issue
Block a user