From fb5a6ad93e076a42abcab874cb0322319f84e8ed Mon Sep 17 00:00:00 2001 From: z1 Date: Thu, 22 Aug 2024 21:42:47 +0800 Subject: [PATCH] The Open Graph protocol Update config.mts just a temporary scheme... --- .vitepress/config.mts | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {