feat: 添加百度SEO配置指南,更新VitePress配置以支持百度统计和搜索资源平台验证,同时创建相关HTML验证文件和Sitemap

This commit is contained in:
wood911010 committed 2026-01-18 00:08:38 +08:00
1 parent 57486c79f8
commit 2a017a1be5
6 files changed
+525 -1

No files matched your search

+16
View File
@@ -44,10 +44,26 @@ export default defineConfig({
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'default' }],
['meta', { name: 'apple-mobile-web-app-title', content: 'License Manager' }],
// 百度SEO优化 - 请替换为你的实际百度验证代码
// ['meta', { name: 'baidu-site-verification', content: '你的验证代码' }],
['meta', { name: 'renderer', content: 'webkit' }],
['meta', { name: 'applicable-device', content: 'pc,mobile' }],
// 安全和性能
['meta', { 'http-equiv': 'X-UA-Compatible', content: 'IE=edge' }],
['meta', { name: 'format-detection', content: 'telephone=no' }],
// 百度统计代码
['script', {}, `
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?0bb0e3047706f56c57a9faf920fcde2a"; // 百度统计ID
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`],
// 结构化数据 (JSON-LD)
['script', { type: 'application/ld+json' }, JSON.stringify({
'@context': 'https://schema.org',