[PATCH 10 of 11] [RFC] hgweb: change default robots settings

Markus F.X.J. Oberhumer markus at oberhumer.com
Mon Jun 25 07:50:47 CDT 2007


# HG changeset patch
# User Markus F.X.J. Oberhumer <markus at oberhumer.com>
# Date 1182775580 -7200
# Node ID 96bb1c2d61b2fbbb556e46d82daac77cf5548ee2
# Parent  52eb68317e0f5dae21b476656af18a26b65ed682
[RFC] hgweb: change default robots settings.

TODO: The default meta robots settings will not suit everyone. So
maybe make this a configuration option ?

diff --git a/templates/gitweb/header.tmpl b/templates/gitweb/header.tmpl
--- a/templates/gitweb/header.tmpl
+++ b/templates/gitweb/header.tmpl
@@ -5,6 +5,6 @@ Content-type: text/html; charset={encodi
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
 <head>
 <link rel="icon" href="{staticurl}hgicon.png" type="image/png">
-<meta name="robots" content="index, nofollow"/>
+<meta name="robots" content="none" />
 <link rel="stylesheet" href="{staticurl}style-gitweb.css" type="text/css" />
 
diff --git a/templates/header.tmpl b/templates/header.tmpl
--- a/templates/header.tmpl
+++ b/templates/header.tmpl
@@ -4,5 +4,5 @@ Content-type: text/html; charset={encodi
 <html>
 <head>
 <link rel="icon" href="#staticurl#hgicon.png" type="image/png">
-<meta name="robots" content="index, nofollow" />
+<meta name="robots" content="none" />
 <link rel="stylesheet" href="#staticurl#style.css" type="text/css" />


More information about the Mercurial-devel mailing list