Skip to content
0

首页布局默认属性得配置下

首页布局默认属性得配置下

环境

Teek@1.5.0-2025.9.23 版本上测试

自己的开源库《vitepress-theme-teek-one》 --(克隆自 作者Teeker的文档风开源库《vitepress-theme-teek-docs-template》)

2025年9月27日测试

需求

首页布局默认属性得配置下

image-20250926061002448

配置

编辑docs\.vitepress\theme\config\teekConfig.ts文件:

ts
  //选择第三个选项:全部站看,侧边栏和内容区域宽度都可以调整
  themeEnhance: {
    layoutSwitch: {
      defaultMode: "bothWidthAdjustable",
    },
  },

image-20250927065917676

效果:在无痕浏览器打开网站,观察现象(可以看到已经默认是第三个选项了)

image-20250927070009046

结束。

最近更新