ulivz / vt

🖼️ A "Post-VuePress Era" Documentation Theme (Deprecation Warning: For a next-gen SSG, please check out Rspress.)
https://vt.insx.dev
MIT License
137 stars 10 forks source link

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

Open MetalOxideSemi opened 2 years ago

MetalOxideSemi commented 2 years ago

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...