diff options
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.xsl | 2 | ||||
-rw-r--r-- | source/99_result/article/article.xsl | 4 | ||||
-rw-r--r-- | source/99_result/category/category.xsl | 2 | ||||
-rw-r--r-- | source/99_result/page/page.xsl | 2 | ||||
-rw-r--r-- | source/99_result/stream.xsl | 8 | ||||
-rw-r--r-- | source/99_result/tag/tag.xsl | 2 | ||||
-rw-r--r-- | utility/master.xsl | 19 |
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 < @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> |