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

[Question] 如何修改metadata 信息 #60

Open
yyqxjwxy opened this issue Jan 7, 2025 · 2 comments
Open

[Question] 如何修改metadata 信息 #60

yyqxjwxy opened this issue Jan 7, 2025 · 2 comments

Comments

@yyqxjwxy
Copy link

yyqxjwxy commented Jan 7, 2025

🧐 问题描述 | Proposed Solution

   metadata?: {
        description?: string;
        icons?: {
            apple?: string;
            icon?: string;
            shortcut?: string;
        };
        manifest?: string;
        openGraph?: {
            description?: string;
            image?: string;
            siteName?: string;
            title?: string;
        };
        title?: string;
        twitter?: {
            description?: string;
            image?: string;
            site?: string;
            title?: string;
        };
    };

按照类型约定把 icons 替换成

icons:{
           apple:'/favicon.ico';
           icon:'/favicon.ico';
           shortcut:'/favicon.ico';
}

不生效

📝 补充信息 | Additional Information

No response

@canisminor1990
Copy link
Member

@yyqxjwxy
Copy link
Author

yyqxjwxy commented Jan 7, 2025

参考下这个 https://github.com/lobehub/lobe-ui/blob/1440683788d43a4b702a8c8c896966647b15928f/.dumirc.ts#L93

您的意思是只需要配置favicons属性就可以了吗,但是我的项目还是不生效一直显示这样
image

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

2 participants