hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.11k stars 1.05k forks source link

Support `redirect-to` in HackMD YAML front matter for a 301 Redirect #1795

Open ChristopherA opened 1 year ago

ChristopherA commented 1 year ago

I'm consistently having problems with Google and other search engines indexing early drafts of papers written in HackMD as higher page rank than the final paper on my website.

This has forced me to put robots: noindex, nofollow into my YAML.

However, this has not solved the problem, as when I now search for the those topics, Google still puts the HackMD page at the top, but clicking on it gives a 404.

I'd like to see an option, like you can do with the Jekyll (and GitHub-remote supported) plug for the YAML to have a redirect-to that does a http 301 redirect that putting the into the content. My understanding that Google will do the right thing if that exists.