Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MetalOxideSemi opened this issue Mar 18, 2022 · 0 comments

Comments

@MetalOxideSemi
Copy link

MetalOxideSemi commented Mar 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant