aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-09-26 20:51:36 +0200
committerAdrian Kummerlaender2018-09-26 21:08:34 +0200
commit92beb2254a441d43bb66ab89a179853ccbe6bceb (patch)
treee095773a0224db2e68d82dc8d30200cd636a8d58 /utility
parent792c2856ec379f957423ba5ab40c8d05b7ab4fc8 (diff)
downloadblog.kummerlaender.eu-92beb2254a441d43bb66ab89a179853ccbe6bceb.tar
blog.kummerlaender.eu-92beb2254a441d43bb66ab89a179853ccbe6bceb.tar.gz
blog.kummerlaender.eu-92beb2254a441d43bb66ab89a179853ccbe6bceb.tar.bz2
blog.kummerlaender.eu-92beb2254a441d43bb66ab89a179853ccbe6bceb.tar.lz
blog.kummerlaender.eu-92beb2254a441d43bb66ab89a179853ccbe6bceb.tar.xz
blog.kummerlaender.eu-92beb2254a441d43bb66ab89a179853ccbe6bceb.tar.zst
blog.kummerlaender.eu-92beb2254a441d43bb66ab89a179853ccbe6bceb.zip
Load navigation, meta-tags from content `meta.xml`
Diffstat (limited to 'utility')
-rw-r--r--utility/master.xsl36
1 files changed, 15 insertions, 21 deletions
diff --git a/utility/master.xsl b/utility/master.xsl
index f60c2a0..717f5ae 100644
--- a/utility/master.xsl
+++ b/utility/master.xsl
@@ -20,8 +20,8 @@
<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="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"/>
@@ -44,18 +44,7 @@
</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>
+ <xsl:apply-templates select="$root/meta/header/navigation/link" mode="master"/>
</ul>
</div>
@@ -70,15 +59,12 @@
</div>
<div id="footer" class="center">
- <a href="https://tree.kummerlaender.eu/projects/xslt/">Made with XSLT</a>
+ <a href="{$root/meta/footer/info/@href}">
+ <xsl:value-of select="$root/meta/footer/info/text()"/>
+ </a>
<ul class="buttonlist">
- <li>
- <a href="https://tree.kummerlaender.eu/contact">Contact</a>
- </li>
- <li>
- <a href="/atom.xml">Feed</a>
- </li>
+ <xsl:apply-templates select="$root/meta/footer/navigation/link" mode="master"/>
</ul>
</div>
</body>
@@ -93,6 +79,14 @@
</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>