blob: 035862730cf268e71b9593a3970e45695276aed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output
method="xml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="no"
/>
<xsl:variable name="root" select="datasource"/>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="{$root/meta/author}" />
<meta name="description" content="{$root/meta/description}" />
<meta name="robots" content="all"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<link rel="stylesheet" type="text/css" href="/main.css" />
<link rel='alternate' type='application/atom+xml' href='/atom.xml'/>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMjU2IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHJlY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIHJ4PSIyMCIgZmlsbD0iI2ZmODgwMCI+PC9yZWN0PjxwYXRoIGZpbGw9IiNmZmYiIGQ9IiI+PC9wYXRoPjwvc3ZnPg=="/>
<xsl:if test="//*[(self::p or self::span) and @class = 'math']">
<link rel="stylesheet" type="text/css" href="https://static.kummerlaender.eu/katex/katex.min.css" />
</xsl:if>
<title>
<xsl:call-template name="title-text"/> @ <xsl:value-of select="$root/meta/title"/>
</title>
</head>
<body>
<div id="navigation" class="center border_bottom">
<h1>
<xsl:value-of select="$root/meta/title"/>
</h1>
<ul class="buttonlist">
<xsl:apply-templates select="$root/meta/header/navigation/link" mode="master"/>
</ul>
</div>
<div id="content" class="center">
<xsl:apply-templates />
</div>
<div id="tags" class="center border_top border_bottom">
<ul class="buttonlist">
<xsl:apply-templates select="datasource/meta/tags/entry" mode="master"/>
</ul>
</div>
<div id="footer" class="center">
<a href="{$root/meta/footer/info/@href}">
<xsl:value-of select="$root/meta/footer/info/text()"/>
</a>
<ul class="buttonlist">
<xsl:apply-templates select="$root/meta/footer/navigation/link" mode="master"/>
</ul>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="meta/tags/entry" mode="master">
<li>
<a href="/tag/{@handle}">
<xsl:value-of select="@handle"/>
</a>
</li>
</xsl:template>
<xsl:template match="link" mode="master">
<li>
<a href="{@href}">
<xsl:value-of select="text()"/>
</a>
</li>
</xsl:template>
<xsl:template match="text()|@*"/>
</xsl:stylesheet>
|