diff --git a/.vitepress/config.mts b/.vitepress/config.mts index d635f3c..e2e941e 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -10,6 +10,14 @@ import { withMermaid } from "vitepress-plugin-mermaid"; export default withMermaid({ title: "NerChat!——开源IM", description: "NerChat! 是一个部署在国内的即时聊天Matrix服务器。", + head: [ + ['meta', { property: 'og:title', content: 'NerChat!——开源IM' }], + ['meta', { property: 'og:description', content: 'NerChat! 是一个部署在国内的即时聊天Matrix服务器。' }], + ['meta', { property: 'og:image', content: 'http://www.neboer.site/nerchat/nerchat_logo.svg' }], + ['meta', { property: 'og:url', content: 'https://www.neboer.site/nerchat/' }], + ['meta', { property: 'og:type', content: 'website' }], + // more Open Graph tag... + ], lang: 'zh-CN', markdown: { config(md) {