mirror of https://github.com/jlelse/GoBlog
Tell robots to not index comments
This commit is contained in:
parent
72f676dda2
commit
90ecd76492
|
@ -38,6 +38,7 @@ func serveComment(blog string) func(http.ResponseWriter, *http.Request) {
|
||||||
serveError(w, r, err.Error(), http.StatusInternalServerError)
|
serveError(w, r, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
w.Header().Set("X-Robots-Tag", "noindex")
|
||||||
render(w, templateComment, &renderData{
|
render(w, templateComment, &renderData{
|
||||||
BlogString: blog,
|
BlogString: blog,
|
||||||
Data: comment,
|
Data: comment,
|
||||||
|
|
Loading…
Reference in New Issue