Tell robots to not index comments

This commit is contained in:
Jan-Lukas Else 2021-01-23 17:44:40 +01:00
parent 72f676dda2
commit 90ecd76492
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ func serveComment(blog string) func(http.ResponseWriter, *http.Request) {
serveError(w, r, err.Error(), http.StatusInternalServerError)
return
}
w.Header().Set("X-Robots-Tag", "noindex")
render(w, templateComment, &renderData{
BlogString: blog,
Data: comment,