Tabs to spaces, format, cleanup
This commit is contained in:
parent
f8e637ac85
commit
1a91343471
132
xsl/header.xsl
132
xsl/header.xsl
|
@ -4,69 +4,70 @@
|
|||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:rss="http://purl.org/rss/1.0/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="xsl rss rdf date">
|
||||
xmlns:date="http://exslt.org/dates-and-times"
|
||||
exclude-result-prefixes="xsl rss rdf date">
|
||||
|
||||
<xsl:template name="links">
|
||||
|
||||
<link rel="icon" type="image/png" href="{$baseurl}favicon.ico" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$baseurl}news-rss.xml" />
|
||||
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{$baseurl}news-atom.xml" />
|
||||
<link rel="stylesheet" title="Default" type="text/css" href="{$baseurl}style/default.css" />
|
||||
<link rel="space-api" title="Hackerspace API Endpoint" type="application/json"
|
||||
href="{$baseurl}spaceapi.json"/>
|
||||
<link rel="icon" type="image/png" href="{$baseurl}favicon.ico" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$baseurl}news-rss.xml" />
|
||||
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{$baseurl}news-atom.xml" />
|
||||
<link rel="stylesheet" title="Default" type="text/css" href="{$baseurl}style/default.css" />
|
||||
<link rel="space-api" title="Hackerspace API Endpoint" type="application/json" href="{$baseurl}spaceapi.json"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="header">
|
||||
<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" />
|
||||
<!-- Value 4 Value via Bitcoin Lightning, s. a. unterstuetzen.xml username unterscheidung anhand Content -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="@title = 'Pentaradio'">
|
||||
<meta name="lightning" content="lnurlp:pentaradio@c3d2.de"/>
|
||||
<meta property="og:image" content="https://c3d2.de/images/pentaradio.png" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'Unterstützen'">
|
||||
<meta name="lightning" content="lnurlp:unterstuetzen@c3d2.de"/>
|
||||
<meta property="og:image" content="https://c3d2.de/images/logo.png" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<meta name="lightning" content="lnurlp:value4value@c3d2.de"/>
|
||||
<meta property="og:image" content="https://c3d2.de/images/logo.png" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<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: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" />
|
||||
<!-- Value 4 Value via Bitcoin Lightning, s. a. unterstuetzen.xml username unterscheidung anhand Content -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="@title = 'Pentaradio'">
|
||||
<meta name="lightning" content="lnurlp:pentaradio@c3d2.de"/>
|
||||
<meta property="og:image" content="https://c3d2.de/images/pentaradio.png" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@title = 'Unterstützen'">
|
||||
<meta name="lightning" content="lnurlp:unterstuetzen@c3d2.de"/>
|
||||
<meta property="og:image" content="https://c3d2.de/images/logo.png" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<meta name="lightning" content="lnurlp:value4value@c3d2.de"/>
|
||||
<meta property="og:image" content="https://c3d2.de/images/logo.png" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<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" />
|
||||
|
||||
|
@ -89,9 +90,6 @@
|
|||
<xsl:call-template name="make-script-tag">
|
||||
<xsl:with-param name="name">play-resources</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<!-- project discontinued xsl:call-template name="make-script-tag">
|
||||
<xsl:with-param name="name">bitlove-enclosures</xsl:with-param>
|
||||
</xsl:call-template-->
|
||||
<!-- Nur auf membership.html -->
|
||||
<xsl:if test="/page/membership-form">
|
||||
<xsl:call-template name="make-script-tag">
|
||||
|
@ -104,16 +102,14 @@
|
|||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="make-script-tag">
|
||||
<xsl:param name="name"/>
|
||||
|
||||
<script src="{$baseurl}script/{$name}.js"
|
||||
type="text/javascript" defer="defer">
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
<script src="{$baseurl}script/{$name}.js" type="text/javascript" defer="defer">
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
</script>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue