1bl4z3r / hermit-V2

Continuing Hermit's legacy to be minimal and fast theme
https://1bl4z3r.github.io/hermit-V2/
MIT License
101 stars 45 forks source link

[Feature Request] Allow user to specify a page as "noindex" #81

Closed xuhdev closed 2 months ago

xuhdev commented 2 months ago

Please consider a variable that lets a user specify whether a page should not be indexed by Search Engines. This would allow pages such terms of services, privacy policies, and even some tag pages from being indexed.

This would be similar to the robotsNoIndex option from PaperMod.

1bl4z3r commented 2 months ago

Hi @xuhdev,

That's a very good suggestion. I am checking this very thing.

Will keep you posted...

1bl4z3r commented 2 months ago

Hi @xuhdev,

You can now customize how you can use robots meta.

For specific pages generated by user:

For specific pages generated by Hugo:

For whole site (not sure why one would want that):

Let me know if you find any other issues, suggestions regarding this.

xuhdev commented 2 months ago

It works, thanks!