aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/99_result/article/article.xsl5
-rw-r--r--source/99_result/category/category.xsl12
-rw-r--r--source/99_result/page/page.xsl10
-rw-r--r--source/99_result/stream.xsl5
4 files changed, 27 insertions, 5 deletions
diff --git a/source/99_result/article/article.xsl b/source/99_result/article/article.xsl
index 8d39dc9..bbde793 100644
--- a/source/99_result/article/article.xsl
+++ b/source/99_result/article/article.xsl
@@ -20,7 +20,10 @@
<xsl:template match="article/entry">
<div class="last article">
<h2>
- » <a href="{$url}/article/{@handle}"><xsl:value-of select="title"/></a>
+ <xsl:text>» </xsl:text>
+ <a href="{$url}/article/{@handle}">
+ <xsl:value-of select="title"/>
+ </a>
</h2>
<p class="info">
<xsl:call-template name="format-date">
diff --git a/source/99_result/category/category.xsl b/source/99_result/category/category.xsl
index ef6f388..2b54348 100644
--- a/source/99_result/category/category.xsl
+++ b/source/99_result/category/category.xsl
@@ -2,6 +2,7 @@
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:math="http://exslt.org/math"
>
<xsl:include href="[utility/master.xsl]"/>
@@ -17,9 +18,18 @@
</xsl:template>
<xsl:template match="category/entry">
+ <h3>
+ <xsl:text>All pages categorized as &#187;</xsl:text>
+ <xsl:value-of select="@handle"/>
+ <xsl:text>&#171; in random order</xsl:text>
+ </h3>
<div class="archiv columns">
<ul class="prettylist">
- <xsl:apply-templates />
+ <xsl:for-each select="page">
+ <xsl:sort select="position() mod math:random()" order="descending"/>
+
+ <xsl:apply-templates select="."/>
+ </xsl:for-each>
</ul>
</div>
</xsl:template>
diff --git a/source/99_result/page/page.xsl b/source/99_result/page/page.xsl
index fcf217d..4bf62ba 100644
--- a/source/99_result/page/page.xsl
+++ b/source/99_result/page/page.xsl
@@ -18,8 +18,14 @@
<xsl:template match="page/entry">
<div class="last article">
- <h3><xsl:value-of select="./title"/></h3>
- <xsl:copy-of select="./content/*"/>
+ <h2>
+ <xsl:text>» </xsl:text>
+ <a href="{$url}/page/{@handle}">
+ <xsl:value-of select="title"/>
+ </a>
+ </h2>
+ <p class="info"/>
+ <xsl:copy-of select="content/*"/>
</div>
</xsl:template>
diff --git a/source/99_result/stream.xsl b/source/99_result/stream.xsl
index 86785bc..526b8db 100644
--- a/source/99_result/stream.xsl
+++ b/source/99_result/stream.xsl
@@ -32,7 +32,10 @@
<xsl:variable name="article" select="$root/articles/entry[@handle = $handle]"/>
<h2>
- » <a href="{$url}/article/{$handle}"><xsl:value-of select="$article/title"/></a>
+ <xsl:text>» </xsl:text>
+ <a href="{$url}/article/{$handle}">
+ <xsl:value-of select="$article/title"/>
+ </a>
</h2>
<p class="info">
<xsl:call-template name="format-date">