Skip to content

主题页面

blog

md
---
layout: blog
---

在md文档中将layout设置为blog,其效果为本博客的首页效果,有以下效果:

  1. 展示博客列表
  2. 作者信息(头像,名称,需要配置)
  3. 浏览量
  4. 分类
  5. 标签

该页面不会展示md文档其他内容

category

md
---
layout: category
---

在md文档中将layout设置为category,其效果类似本博客的标签和分类效果,有以下效果:

  1. 分类列表
  2. 文章列表
  3. 点选某个分类筛选文章

tag

md
---
layout: tag
---

在md文档中将layout设置为tag,其效果类似本博客的标签和分类效果,有以下效果:

  1. 标签列表
  2. 文章列表
  3. 点选某个标签筛选文章

filter

md
---
layout: filter
---

在md文档中将layout设置为filter,其效果为本博客的标签和分类效果,有以下效果:

  1. 分类列表
  2. 标签列表
  3. 文章列表
  4. 点选某个标签筛选文章

timeline

md
---
layout: timeline
---

在md文档中将layout设置为timeline,其效果为本博客的时间线效果,有以下效果:

  1. 按照时间排序的文章列表

doc

md
---
layout: doc
---

doc为vitepress默认主题中的配置,即显示文档时的默认选择,本主题扩充了该页面的参数,使用时设置为doc

type

md
---
layout: doc
type: widen // [!code ++]
---

如果type为widen,页面内容宽度更宽

导航页

导航页使用了组件web-list,其效果为本博客的导航页效果,以下是当前一个配置案例

md
---
layout: doc
type: widen
title: 导航
---
<script setup>
const list = [
  {
    title: "ruler",
    icon: "github",
    desc: "canvas绘制的标尺",
    link: "https://github.com/hahaxiaowai/ruler.git",
  },
  {
    title: "sdk-rollup-init",
    icon: "github",
    desc: "js库初始化框架,使用rollup打包",
    link: "https://github.com/hahaxiaowai/sdk-rollup-init",
  },
];
</script>
<web-list :list />

web-list 参数说明

参数名说明
title标题
icongithub,demo
desc描述
link链接
夜茶 2020 ~ 2026