summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2018-11-15 10:16:57 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2018-11-15 10:20:27 +0100
commit23dfcab7c810e85c1d4680d1ae20a5a743c95c14 (patch)
treed9ebc2fc1bc4b769f9f31c500ccc6410d5caa52e /xsl
parentd03452ccae23316563dfd878bb8f9e734d02eb78 (diff)
downloadmutti-web-23dfcab7c810e85c1d4680d1ae20a5a743c95c14.tar.gz
mutti-web-23dfcab7c810e85c1d4680d1ae20a5a743c95c14.tar.bz2
mutti-web-23dfcab7c810e85c1d4680d1ae20a5a743c95c14.zip
Add meta description
Diffstat (limited to 'xsl')
-rw-r--r--xsl/common.xsl1
-rw-r--r--xsl/layout.xsl1
2 files changed, 2 insertions, 0 deletions
diff --git a/xsl/common.xsl b/xsl/common.xsl
index dbc5174..1c3db12 100644
--- a/xsl/common.xsl
+++ b/xsl/common.xsl
@@ -15,6 +15,7 @@
<xsl:variable name="filename" select="/s:html/@name" />
<xsl:variable name="title" select="document('../main.xml')/s:site/s:page[@filename = $filename]/@title" />
+ <xsl:variable name="description" select="document('../main.xml')/s:site/s:page[@filename = $filename]/@description" />
<xsl:param name="suffix" select="'.xml'" />
<xsl:param name="stylesheet" select="'@import url(&quot;style.css&quot;);'" />
<xsl:param name="version" select="''" />
diff --git a/xsl/layout.xsl b/xsl/layout.xsl
index 5ee8080..622d9f4 100644
--- a/xsl/layout.xsl
+++ b/xsl/layout.xsl
@@ -20,6 +20,7 @@
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width" />
+ <meta name="description" content="{$description}" />
<xsl:if test="/s:html/@robots">
<meta name="robots" content="{/s:html/@robots}">
</meta>