aboutsummaryrefslogtreecommitdiff
path: root/utility/master.xsl
blob: f60c2a0afef825e1c52bff921427d1e2f72606a1 (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
93
94
95
96
97
98
<?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="Adrian Kummerländer" />
	<meta name="description"        content="Adrian Kummerländer's blog on software development, linux and open source" />
	<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="shortcut icon" type="image/x-icon"         href="/media/favicon.ico" />
	<link rel='alternate'     type='application/atom+xml' href='/atom.xml'/>

	<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">
			<li>
				<a href="/">Start</a>
			</li>
			<li>
				<a href="/archive">Archive</a>
			</li>
			<li>
				<a href="https://tree.kummerlaender.eu/contact">Contact</a>
			</li>
			<li>
				<a href="/atom.xml">Feed</a>
			</li>
		</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="https://tree.kummerlaender.eu/projects/xslt/">Made with XSLT</a>

		<ul class="buttonlist">
			<li>
				<a href="https://tree.kummerlaender.eu/contact">Contact</a>
			</li>
			<li>
				<a href="/atom.xml">Feed</a>
			</li>
		</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="text()|@*"/>

</xsl:stylesheet>