merge header parts in pemplate+robots=noindex for chat
This commit is contained in:
parent
8f4b48c694
commit
6e02864863
|
@ -17,26 +17,41 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template name="header">
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="age-de-meta-label" content="age=0 hash:2f543505f7d9014bc35c3bc405bb6739c7ee87bd kind=sl protocol=all" />
|
||||
<meta name="description" content="<<</>> c3d2, der Erfahrungsaustauschkreis aus dem sächsischen Dresden" />
|
||||
<meta name="keywords" content="c3d2 ccc dresden sachsen hacker" />
|
||||
<meta name="robots" content="index,follow" />
|
||||
<meta name="generator" content="C3D2-Web" />
|
||||
<meta name="language" content="de" />
|
||||
<meta name="author" content="Fnordic walker" />
|
||||
<meta name="date" content="May 23 1981" />
|
||||
|
||||
<meta name="DC.Creator" content="Fnordic walker" />
|
||||
<meta name="DC.Description" content="<<</>> c3d2, der Erfahrungsaustauschkreis aus dem sächsischen Dresden" />
|
||||
<meta name="DC.Publisher" content="Chaos Computer Club Dresden" />
|
||||
<meta name="DC.Date" content="May 23 1981" />
|
||||
<meta name="DC.Type" content="Text" />
|
||||
<meta name="DC.Format" content="text/html" />
|
||||
<meta name="DC.Language" content="de" />
|
||||
<meta name="DC.Coverage" content="Dresden" />
|
||||
<meta name="DC.Title" content="c3d2: Chaos Computer Club Dresden" />
|
||||
<xsl:param name="title"/>
|
||||
<xsl:element name="head">
|
||||
<title>
|
||||
<xsl:text><<</>> Chaos Computer Club Dresden | c3d2</xsl:text>
|
||||
<xsl:if test="$title != ''">
|
||||
<xsl:value-of select="$title" />
|
||||
</xsl:if>
|
||||
</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="age-de-meta-label" content="age=0 hash:2f543505f7d9014bc35c3bc405bb6739c7ee87bd kind=sl protocol=all" />
|
||||
<xsl:choose>
|
||||
<!-- Chat aus Suchmaschine herauswünschen -->
|
||||
<xsl:when test="@title = 'Chat'">
|
||||
<meta name="robots" content="noindex" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<meta name="robots" content="index,follow" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<meta name="description" content="<<</>> c3d2, der Erfahrungsaustauschkreis aus dem sächsischen Dresden" />
|
||||
<meta name="keywords" content="c3d2 ccc dresden sachsen hacker" />
|
||||
<meta name="DC.Creator" content="Fnordic walker" />
|
||||
<meta name="DC.Description" content="<<</>> c3d2, der Erfahrungsaustauschkreis aus dem sächsischen Dresden" />
|
||||
<meta name="DC.Publisher" content="Chaos Computer Club Dresden" />
|
||||
<meta name="DC.Date" content="May 23 1981" />
|
||||
<meta name="DC.Type" content="Text" />
|
||||
<meta name="DC.Format" content="text/html" />
|
||||
<meta name="DC.Language" content="de" />
|
||||
<meta name="DC.Coverage" content="Dresden" />
|
||||
<meta name="DC.Title" content="c3d2: Chaos Computer Club Dresden" />
|
||||
<meta name="generator" content="C3D2-Web" />
|
||||
<meta name="language" content="de" />
|
||||
<meta name="author" content="Fnordic walker" />
|
||||
<meta name="date" content="May 23 1981" />
|
||||
|
||||
<xsl:call-template name="links" />
|
||||
|
||||
|
@ -62,18 +77,18 @@
|
|||
<xsl:call-template name="make-script-tag">
|
||||
<xsl:with-param name="name">play-resources</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="make-script-tag">
|
||||
<!-- project discontinued xsl:call-template name="make-script-tag">
|
||||
<xsl:with-param name="name">bitlove-enclosures</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:call-template-->
|
||||
<!-- Nur auf membership.html -->
|
||||
<xsl:if test="/page/membership-form">
|
||||
<!-- vv01f: todo: build tags for existing files only -->
|
||||
<xsl:call-template name="make-script-tag">
|
||||
<xsl:with-param name="name">membership</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="make-script-tag">
|
||||
<xsl:param name="name"/>
|
||||
|
|
|
@ -57,19 +57,12 @@
|
|||
<xsl:template name="body">
|
||||
<xsl:param name="title" />
|
||||
|
||||
<xsl:element name="html">
|
||||
<xsl:attribute name="lang">de</xsl:attribute>
|
||||
<xsl:attribute name="xml:lang">de</xsl:attribute>
|
||||
<xsl:element name="head">
|
||||
<xsl:call-template name="header" />
|
||||
<title>
|
||||
<xsl:text><<</>> Chaos Computer Club Dresden | c3d2</xsl:text>
|
||||
<xsl:if test="$title != ''">
|
||||
<xsl:text> - </xsl:text>
|
||||
<xsl:value-of select="$title" />
|
||||
</xsl:if>
|
||||
</title>
|
||||
</xsl:element>
|
||||
<xsl:element name="html">
|
||||
<xsl:attribute name="lang">de</xsl:attribute>
|
||||
<xsl:attribute name="xml:lang">de</xsl:attribute>
|
||||
<xsl:call-template name="header">
|
||||
<xsl:with-param name="title" select="$title" />
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:element name="body">
|
||||
<div id="page">
|
||||
|
|
Loading…
Reference in New Issue