Skip to content

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

@MetalOxideSemi

Description

@MetalOxideSemi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions