vt icon indicating copy to clipboard operation
vt copied to clipboard

Dark mode toggling switch will not show when 'repo' is not defined in themeConfig

Open MetalOxideSemi opened this issue 3 years ago • 0 comments

When the themeConfig property in config.js is defined as

module.exports = {
    theme: "vt",
    themeConfig: {
        enableDarkMode: true,
        repo: "https://google.com",
    },
};

the dark mode toggling switch is shown, even though the repo url is not a real repository. But when it is defined as

module.exports = {
    theme: "vt",
    themeConfig: {
        enableDarkMode: true,
    },
};

The dark mode toggling switch will be simply dissappeared.

Does the repo url definition have anything to do with the dark mode switch? I thought they were two unrelated features...

MetalOxideSemi avatar Mar 18 '22 04:03 MetalOxideSemi