How to add commenting system to all pages? #8226
-
Hello, Now, to add the commenting system to all the pages, i think that i need to use the meta plugin. So, i created a .meta.yml file in a subfolder under 'docs'. This is how my .meta.yml file looks like: When i run the mkdocs serve command, this error is displayed: Am i missing anything? Syed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @syeda-git, Instead of setting the Also keep in mind the indentation in the YAML file should be constant, the |
Beta Was this translation helpful? Give feedback.
Hello @syeda-git,
your
.meta.yml
file should not contain any---
, which in YAML define an end of file.Instead of setting the
comments: true
for every file in a directory you could also change the conditional inside ofcomments.html
Like
if page.file.src_uri.startswith("howto/")
, it's up to you which is more straightforward.Also keep in mind the indentation in the YAML file should be constant, the
meta_file
inside ofmeta
plugin, should be on the same level astype
inside ofgit-revision-date-localized