I'm using the PaperMod theme. I have the following params in my config.yml
---
# some predefined variables
params:
ShowReadingTime: true
ShowShareButtons: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: true
---
The params work as expected for my posts. But then I have single pages (e.g. About page) that I don’t want to use the same params. I tried overriding the above values in the index.md
of my /about/
directory, but it didn't work.
So I read more in the docs and blog posts about _index.md
, but not sure if I figured it out right, it seems that I should do something like this instead:
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
But when I do such, the params I set don’t have any effect on post1, post2.
Am I doing this the right way? I thought I can think of content/posts
as a section and each section would need a _index.md
for its custom front matter variables.