我正在使用PaperMod主题。我有以下参数config.yml
---
# some predefined variables
params:
ShowReadingTime: true
ShowShareButtons: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: true
---
对于我的帖子,参数按预期工作。但是后来我有不想使用相同参数的单个页面(例如关于页面)。index.md
我尝试在我的目录中覆盖上述值/about/
,但它不起作用。
所以我在文档和博客文章中阅读了更多关于 的内容_index.md
,但不确定我是否理解正确,似乎我应该做这样的事情:
config.yml // remove such params
content
posts
_index.md // only add params here
post1.md
post2.md
about.md // special page that doesn't need the params
但是当我这样做时,我设置的参数对 post1、post2 没有任何影响。
我这样做对吗?我以为我可以将其content/posts
视为一个部分,每个部分都需要一个_index.md
用于其自定义前端变量的变量。