library-web r540 - in trunk: . data/xslt
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: library-web r540 - in trunk: . data/xslt
- Date: Sun, 9 Nov 2008 15:28:40 +0000 (UTC)
Author: fpeters
Date: Sun Nov 9 15:28:40 2008
New Revision: 540
URL: http://svn.gnome.org/viewvc/library-web?rev=540&view=rev
Log:
* data/xslt/indexes.xsl: do not add entries in robots.txt for every
languages. (closes: #560008)
Modified:
trunk/ChangeLog
trunk/data/xslt/indexes.xsl
Modified: trunk/data/xslt/indexes.xsl
==============================================================================
--- trunk/data/xslt/indexes.xsl (original)
+++ trunk/data/xslt/indexes.xsl Sun Nov 9 15:28:40 2008
@@ -879,13 +879,14 @@
</xsl:template>
<xsl:template match="indexes" mode="robotstxt">
+ <xsl:param name="onelang"><xsl:value-of select="index[position() = 1]/@lang"/></xsl:param>
<xsl:message>Writing robots.txt</xsl:message>
<exsl:document href="robots.txt" method="text" encoding="UTF-8">
<xsl:text># don't let robot index all versions of documents
# see http://bugzilla.gnome.org/show_bug.cgi?id=509424
User-agent: *
</xsl:text>
- <xsl:apply-templates select="//document" mode="robotstxt"/>
+ <xsl:apply-templates select="index[ lang = $onelang]//document" mode="robotstxt"/>
</exsl:document>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]