跳至主要內容

排除页面

Tom Tan大约 1 分钟使用指南配置页面配置使用指南

(adsbygoogle = window.adsbygoogle || []).push({});

我们不想在页面的下面 展示编辑此页链接.

侧边栏排除

这个表示是否在侧边栏中索引当前页面, 在的要改排除md文件里边 把YAML front matter的 index 属性设置为false即可。

---
index: false
---

时间线排除

这个表示是否将该文章添加至时间线中, 在的要改排除md文件里边 把YAML front matter的 timeline 属性设置为false即可。

---
timeline: false
---

常规文章列表排除

这个表示是否将该文章添加至文章列表中, 在的要改排除md文件里边 把YAML front matter的 article 属性设置为false即可。

---
article: false
---

首页文章列表排除

这个需要修改 XXX/.vuepress/theme.ts 这个主题文件的blog.filter

import { hopeTheme } from "vuepress-theme-hope";
export default hopeTheme({
  blog: {
    filter: [
      '/xxxx' // 相关对径 例 /buy-me-a-coffee
    ]
  }
});
(adsbygoogle = window.adsbygoogle || []).push({});
上次编辑于:
贡献者: Tom Tan