aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-09 18:11:26 +0200
committerAdrian Kummerlaender2014-09-09 18:11:26 +0200
commit370e42ede122348c05a67ed9605b61082474e228 (patch)
tree8906fb3d6b24d83c94ad4923142d481cf5473375
parent6af2607eb29404598fc68e0255262d7d59903d43 (diff)
downloadblog.kummerlaender.eu-370e42ede122348c05a67ed9605b61082474e228.tar
blog.kummerlaender.eu-370e42ede122348c05a67ed9605b61082474e228.tar.gz
blog.kummerlaender.eu-370e42ede122348c05a67ed9605b61082474e228.tar.bz2
blog.kummerlaender.eu-370e42ede122348c05a67ed9605b61082474e228.tar.lz
blog.kummerlaender.eu-370e42ede122348c05a67ed9605b61082474e228.tar.xz
blog.kummerlaender.eu-370e42ede122348c05a67ed9605b61082474e228.tar.zst
blog.kummerlaender.eu-370e42ede122348c05a67ed9605b61082474e228.zip
Removed unnecessary absolute links
* there is no reason for generating absolute links as the resulting pages will be served on their own domain
-rw-r--r--source/99_result/archive.xsl2
-rw-r--r--source/99_result/article/article.xsl4
-rw-r--r--source/99_result/category/category.xsl2
-rw-r--r--source/99_result/page/page.xsl2
-rw-r--r--source/99_result/stream.xsl8
-rw-r--r--source/99_result/tag/tag.xsl2
-rw-r--r--utility/master.xsl19
7 files changed, 19 insertions, 20 deletions
diff --git a/source/99_result/archive.xsl b/source/99_result/archive.xsl
index 62861a5..909f77f 100644
--- a/source/99_result/archive.xsl
+++ b/source/99_result/archive.xsl
@@ -48,7 +48,7 @@
<xsl:template match="entry/article">
<li>
- <a href="{$url}/article/{@handle}">
+ <a href="/article/{@handle}">
<xsl:value-of select="title"/>
</a>
</li>
diff --git a/source/99_result/article/article.xsl b/source/99_result/article/article.xsl
index 48b73e4..9ce19df 100644
--- a/source/99_result/article/article.xsl
+++ b/source/99_result/article/article.xsl
@@ -21,7 +21,7 @@
<div class="article">
<h2>
<xsl:text>» </xsl:text>
- <a href="{$url}/article/{@handle}">
+ <a href="/article/{@handle}">
<xsl:value-of select="title"/>
</a>
</h2>
@@ -32,7 +32,7 @@
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:for-each select="tags/tag">
- <a href="{$url}/tag/{.}">
+ <a href="/tag/{.}">
<xsl:value-of select="."/>
</a>
</xsl:for-each>
diff --git a/source/99_result/category/category.xsl b/source/99_result/category/category.xsl
index a2c6db5..4b49705 100644
--- a/source/99_result/category/category.xsl
+++ b/source/99_result/category/category.xsl
@@ -21,7 +21,7 @@
<xsl:template match="entry/page">
<li>
<em>»</em>
- <a href="{$url}/page/{@handle}">
+ <a href="/page/{@handle}">
<strong><xsl:value-of select="title"/></strong>
<p>
<xsl:copy-of select="digest/node()"/>
diff --git a/source/99_result/page/page.xsl b/source/99_result/page/page.xsl
index 1c1b5d0..b703f46 100644
--- a/source/99_result/page/page.xsl
+++ b/source/99_result/page/page.xsl
@@ -20,7 +20,7 @@
<div class="last article">
<h2>
<xsl:text>» </xsl:text>
- <a href="{$url}/page/{@handle}">
+ <a href="/page/{@handle}">
<xsl:value-of select="title"/>
</a>
</h2>
diff --git a/source/99_result/stream.xsl b/source/99_result/stream.xsl
index 9d5e8b5..3fe93e1 100644
--- a/source/99_result/stream.xsl
+++ b/source/99_result/stream.xsl
@@ -33,7 +33,7 @@
<h2>
<xsl:text>» </xsl:text>
- <a href="{$url}/article/{$handle}">
+ <a href="/article/{$handle}">
<xsl:value-of select="$article/title"/>
</a>
</h2>
@@ -44,7 +44,7 @@
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:for-each select="$article/tags/tag">
- <a href="{$url}/tag/{.}">
+ <a href="/tag/{.}">
<xsl:value-of select="."/>
</a>
</xsl:for-each>
@@ -60,14 +60,14 @@
<div id="pagination">
<xsl:if test="@index > 0">
<span>
- <a class="pagination-previous" href="{$url}/{@index - 1}">
+ <a class="pagination-previous" href="/{@index - 1}">
<xsl:text>« newer</xsl:text>
</a>
</span>
</xsl:if>
<xsl:if test="@index &lt; @total - 1">
<span>
- <a class="pagination-next" href="{$url}/{@index + 1}">
+ <a class="pagination-next" href="/{@index + 1}">
<xsl:text>older »</xsl:text>
</a>
</span>
diff --git a/source/99_result/tag/tag.xsl b/source/99_result/tag/tag.xsl
index f64f526..a727111 100644
--- a/source/99_result/tag/tag.xsl
+++ b/source/99_result/tag/tag.xsl
@@ -31,7 +31,7 @@
<li>
<xsl:value-of select="date"/>
<xsl:text> » </xsl:text>
- <a href="{$url}/article/{@handle}">
+ <a href="/article/{@handle}">
<xsl:value-of select="title"/>
</a>
</li>
diff --git a/utility/master.xsl b/utility/master.xsl
index 3c8b211..15d5c13 100644
--- a/utility/master.xsl
+++ b/utility/master.xsl
@@ -14,13 +14,12 @@
/>
<xsl:variable name="root" select="/datasource"/>
-<xsl:variable name="url" select="$root/meta/url"/>
<xsl:template name="list_tags">
<ul>
<xsl:for-each select="$root/meta/tags/entry">
<li>
- <a href="{$url}/tag/{@handle}">
+ <a href="/tag/{@handle}">
<xsl:value-of select="@handle"/>
</a>
</li>
@@ -37,7 +36,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title><xsl:call-template name="title-text"/> @ <xsl:value-of select="$root/meta/title"/></title>
- <link rel="stylesheet" type="text/css" href="{$url}/main.css" />
+ <link rel="stylesheet" type="text/css" href="/main.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
</head>
@@ -47,11 +46,11 @@
<div id="nav_wrap">
<h1><xsl:value-of select="$root/meta/title"/></h1>
<ul>
- <li><a href="{$url}/0">Start</a></li>
- <li><a href="{$url}/archive">Archive</a></li>
- <li><a href="{$url}/category/projects">Projects</a></li>
- <li><a href="{$url}/page/contact">Contact</a></li>
- <li class="last_item"><a href="{$url}/atom.xml">Feed</a></li>
+ <li><a href="/0">Start</a></li>
+ <li><a href="/archive">Archive</a></li>
+ <li><a href="/category/projects">Projects</a></li>
+ <li><a href="/page/contact">Contact</a></li>
+ <li class="last_item"><a href="/atom.xml">Feed</a></li>
</ul>
</div>
<div id="main">
@@ -65,8 +64,8 @@
<div id="last_line">
<a href="https://github.com/KnairdA/blog.kummerlaender.eu">Made with XSLT</a>
<ul>
- <li><a href="{$url}/page/contact">Contact</a></li>
- <li class="last_item"><a href="{$url}/atom.xml">Feed</a></li>
+ <li><a href="/page/contact">Contact</a></li>
+ <li class="last_item"><a href="/atom.xml">Feed</a></li>
</ul>
</div>
</div>