prettify header.xml

This commit is contained in:
vv01f 2015-11-24 17:31:38 +01:00
parent 6a2b8f974f
commit bf7e7fddac
1 changed files with 72 additions and 74 deletions

View File

@ -7,13 +7,11 @@
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="http://www.hq.c3d2.de/spaceapi.json"/>
<link rel="space-api" title="Hackerspace API Endpoint" type="application/json" href="http://www.hq.c3d2.de/spaceapi.json"/>
</xsl:template>
<xsl:template name="header">
@ -41,7 +39,8 @@
<xsl:comment>[if lt IE 9]&gt;
&lt;script src="<xsl:value-of select="$baseurl"/>script/ie-html5.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;![endif]</xsl:comment>
&lt;![endif]
</xsl:comment>
<xsl:if test="/page/calendar-summary">
<!-- vv01f: todo: build tags for existing files only -->
<xsl:call-template name="make-script-tag">
@ -74,8 +73,7 @@
<xsl:template name="make-script-tag">
<xsl:param name="name"/>
<script src="{$baseurl}script/{$name}.js"
type="text/javascript" defer="defer">
<script src="{$baseurl}script/{$name}.js" type="text/javascript" defer="defer">
<xsl:text>
</xsl:text>
</script>