一、显示当前页面数据和站点数据
vue
<DataLoader />页面数据:
{
"title": "index",
"description": null,
"frontmatter": {
"title": "index",
"date": "2025-08-05T00:03:58.000Z",
"icon": "famicons:logo-markdown",
"index": true,
"tags": null,
"categories": null,
"copyright": true,
"keywords": null,
"cover": null,
"comments": null,
"mathjax": null,
"top": null,
"description": null
},
"headers": [],
"relativePath": "examples/index.md",
"filePath": "examples/index.md",
"lastUpdated": 1754323776000
}站点数据:
{
"lang": "zh-CN",
"dir": "ltr",
"title": "苏木",
"description": "The development documentation for sumu",
"base": "/site-vitepress/",
"head": [],
"router": {
"prefetchLinks": true
},
"appearance": true,
"themeConfig": {
"nav": [
{
"text": "前端相关",
"items": [
{
"text": "nodejs",
"link": "/sdoc/01-前端相关/01-nodejs/",
"activeMatch": "/sdoc/01-前端相关/01-nodejs/"
},
{
"text": "VitePress",
"link": "/sdoc/01-前端相关/02-VitePress/",
"activeMatch": "/sdoc/01-前端相关/02-VitePress/"
},
{
"text": "TypeScript",
"link": "/sdoc/01-前端相关/03-TypeScript/",
"activeMatch": "/sdoc/01-前端相关/03-TypeScript/"
},
{
"text": "JavaScript",
"link": "/sdoc/01-前端相关/04-JavaScript/",
"activeMatch": "/sdoc/01-前端相关/04-JavaScript/"
},
{
"text": "Hexo",
"link": "/sdoc/01-前端相关/05-Hexo/",
"activeMatch": "/sdoc/01-前端相关/05-Hexo/"
}
],
"activeMatch": "/sdoc/01-前端相关/"
},
{
"text": "嵌入式开发",
"link": "/sdoc/02-嵌入式开发/",
"activeMatch": "/sdoc/02-嵌入式开发/"
},
{
"text": "多媒体",
"link": "/sdoc/03-多媒体/",
"activeMatch": "/sdoc/03-多媒体/"
}
],
"sidebar": {
"/sdoc/.git": [],
"/sdoc/.github/": [
{
"text": "workflows",
"collapsed": true,
"items": [],
"collapsible": true
}
],
"/sdoc/01-前端相关/": [
{
"text": "nodejs",
"collapsed": true,
"items": [
{
"text": "LV01-nodejs环境",
"link": "/sdoc/01-前端相关/01-nodejs/LV01-nodejs环境"
},
{
"text": "LV02-我的第一个node程序",
"link": "/sdoc/01-前端相关/01-nodejs/LV02-我的第一个node程序"
},
{
"text": "LV03-npm包的发布与管理",
"link": "/sdoc/01-前端相关/01-nodejs/LV03-npm包的发布与管理"
},
{
"text": "LV04-内容分发网络-CDN",
"link": "/sdoc/01-前端相关/01-nodejs/LV04-内容分发网络-CDN"
},
{
"text": "LV05-npm的workspaces",
"link": "/sdoc/01-前端相关/01-nodejs/LV05-npm的workspaces"
},
{
"text": "LV06-npm中包的入口相关字段",
"link": "/sdoc/01-前端相关/01-nodejs/LV06-npm中包的入口相关字段"
}
],
"collapsible": true
},
{
"text": "VitePress",
"collapsed": true,
"items": [
{
"text": "LV01-VitePress文档",
"link": "/sdoc/01-前端相关/02-VitePress/LV01-VitePress文档"
},
{
"text": "LV02-VitePress自定义主题",
"link": "/sdoc/01-前端相关/02-VitePress/LV02-VitePress自定义主题"
},
{
"text": "LV03-扩展Markdown语法",
"link": "/sdoc/01-前端相关/02-VitePress/LV03-扩展Markdown语法"
},
{
"text": "LV04-自动导航栏和侧边栏",
"link": "/sdoc/01-前端相关/02-VitePress/LV04-自动导航栏和侧边栏"
},
{
"text": "LV05-自定义组件",
"link": "/sdoc/01-前端相关/02-VitePress/LV05-自定义组件"
},
{
"text": "LV06-布局插槽",
"link": "/sdoc/01-前端相关/02-VitePress/LV06-布局插槽"
},
{
"text": "LV07-Catalog组件",
"link": "/sdoc/01-前端相关/02-VitePress/LV07-Catalog组件"
}
],
"collapsible": true
},
{
"text": "TypeScript",
"collapsed": true,
"items": [
{
"text": "LV01-我的第一个ts项目",
"link": "/sdoc/01-前端相关/03-TypeScript/LV01-我的第一个ts项目"
},
{
"text": "LV02-ts项目配置选项",
"link": "/sdoc/01-前端相关/03-TypeScript/LV02-ts项目配置选项"
},
{
"text": "LV03-命令行接口与用户界面",
"link": "/sdoc/01-前端相关/03-TypeScript/LV03-命令行接口与用户界面"
},
{
"text": "LV04-单元测试",
"link": "/sdoc/01-前端相关/03-TypeScript/LV04-单元测试"
},
{
"text": "LV20-TypeScript模块",
"link": "/sdoc/01-前端相关/03-TypeScript/LV20-TypeScript模块"
}
],
"collapsible": true
},
{
"text": "JavaScript",
"collapsed": true,
"items": [
{
"text": "LV20-JavaScript模块",
"link": "/sdoc/01-前端相关/04-JavaScript/LV20-JavaScript模块"
},
{
"text": "LV21-JavaScript模块化的发展",
"link": "/sdoc/01-前端相关/04-JavaScript/LV21-JavaScript模块化的发展"
},
{
"text": "LV22-五大模块化规范",
"link": "/sdoc/01-前端相关/04-JavaScript/LV22-五大模块化规范"
}
],
"collapsible": true
},
{
"text": "Hexo",
"collapsed": true,
"items": [
{
"text": "LV01-hexo插件",
"link": "/sdoc/01-前端相关/05-Hexo/LV01-hexo插件"
},
{
"text": "LV02-标签插件",
"link": "/sdoc/01-前端相关/05-Hexo/LV02-标签插件"
}
],
"collapsible": true
}
],
"/sdoc/02-嵌入式开发/": [],
"/sdoc/03-多媒体/": [],
"/sdoc/README.md": [],
"/sdoc/index.md": []
},
"socialLinks": [
{
"icon": "github",
"link": "https://github.com/docs-site/site-vitepress.git"
}
],
"logo": "/favicon.svg",
"returnToTopLabel": "返回顶部",
"docFooter": {
"prev": "上一篇",
"next": "下一篇"
},
"outline": {
"label": "页面导航",
"level": [
2,
6
]
},
"search": {
"provider": "local"
},
"footer": {
"message": "莫道桑榆晚 为霞尚满天.",
"copyright": "Copyright © 2019-present 苏木"
}
},
"locales": {},
"scrollOffset": 134,
"cleanUrls": false,
"localeIndex": "root"
}