Browse Source

[GINR] meta robots

cgars 8 years ago
parent
commit
2e4a578aa9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      templates/base/head.tmpl

+ 3 - 3
templates/base/head.tmpl

@@ -5,11 +5,11 @@
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
 		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
 		{{if or .PageIsExploreRepositories (or .PageIsHome .PageIsWiki) }}
 		{{if or .PageIsExploreRepositories (or .PageIsHome .PageIsWiki) }}
-		<META NAME="ROBOTS" CONTENT="NOFOLLOW"/>
+		<meta name="robots" content="nofollow"/>
 		{{else if .PageIsViewFiles }}
 		{{else if .PageIsViewFiles }}
-		<META NAME="ROBOTS" CONTENT="NOFOLLOW"/>
+		<meta name="robots" content="noindex,nofollow"/>
 		{{else}}
 		{{else}}
-		<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"/>
+		<meta name="robots" content="noindex, nofollow"/>
 		{{end}}
 		{{end}}
 		{{if not .PageIsAdmin}}
 		{{if not .PageIsAdmin}}
 		<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}G-Node{{end}}"/>
 		<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}G-Node{{end}}"/>