diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2017-07-22 16:11:14 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2017-07-22 16:11:14 +0200 |
commit | 871602b4a7e1099390bbcf6589c5c6aee745bd13 (patch) | |
tree | e6ff26adde635faad1032859e9e83982ba5c94e5 | |
parent | bc704db72df66003cdf7909abd26887a4c1bc10a (diff) | |
download | mutti-web-871602b4a7e1099390bbcf6589c5c6aee745bd13.tar.gz mutti-web-871602b4a7e1099390bbcf6589c5c6aee745bd13.tar.bz2 mutti-web-871602b4a7e1099390bbcf6589c5c6aee745bd13.zip |
Exclude imprint from search engine indexes
-rw-r--r-- | imprint.xml | 2 | ||||
-rw-r--r-- | xsl/layout.xsl | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/imprint.xml b/imprint.xml index 94088e2..aedbc54 100644 --- a/imprint.xml +++ b/imprint.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="xsl/layout.xsl"?> -<s:html name="imprint.xml" +<s:html name="imprint.xml" robots="noindex,follow" xmlns="http://www.w3.org/1999/xhtml" xmlns:s="https://beratung-franzke.de/web-tpl"> diff --git a/xsl/layout.xsl b/xsl/layout.xsl index 3f4cc07..e58c622 100644 --- a/xsl/layout.xsl +++ b/xsl/layout.xsl @@ -20,6 +20,13 @@ </title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width" /> + <xsl:if test="/s:html/@robots"> + <meta name="robots"> + <xsl:attribute name="content"> + <xsl:value-of select="/s:html/@robots" /> + </xsl:attribute> + </meta> + </xsl:if> <style><xsl:value-of select="$stylesheet"/></style> </head> <body> |