Add the "robots: noindex" meta to all pages inside a directory #6634
-
|
I need to add the "robots: noindex" meta to all pages inside a directory docs/2.18. I've found this way https://squidfunk.github.io/mkdocs-material/reference/#using-metadata-in-templates and also tried to use the meta:
However, no success. Probably someone faced with the same or just knows how to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hello @AnastasiaTWW, The only thing I can suggest now is to check for typos in your mkdocs-material/src/templates/base.html Lines 171 to 175 in ab5ccbe Also AFAIK the |
Beta Was this translation helpful? Give feedback.
The canonical way to do this is to use theme extension, add the tags you want to add to
extrahead, and then use that template withtemplate. You can then settemplatewith the meta plugin for an entire subsection of your docs.