aboutsummaryrefslogtreecommitdiff
path: root/source/99_result
diff options
context:
space:
mode:
Diffstat (limited to 'source/99_result')
-rw-r--r--source/99_result/archive.xsl10
-rw-r--r--source/99_result/category/category.xsl39
-rw-r--r--source/99_result/tag/tag.xsl12
3 files changed, 52 insertions, 9 deletions
diff --git a/source/99_result/archive.xsl b/source/99_result/archive.xsl
index 34dc81c..4d459c4 100644
--- a/source/99_result/archive.xsl
+++ b/source/99_result/archive.xsl
@@ -32,12 +32,10 @@
<xsl:template match="microblog">
<div class="column taglist archivtag">
- <div>
- <a href="https://twitter.com/KnairdA">Microblog:</a>
- <ul class="tweetlist">
- <xsl:apply-templates select="item[substring(text, 1, 1) != '@'][position() &lt;= 7]" />
- </ul>
- </div>
+ <a href="https://twitter.com/KnairdA">Microblog:</a>
+ <ul class="prettylist">
+ <xsl:apply-templates select="item[substring(text, 1, 1) != '@'][position() &lt;= 9]" />
+ </ul>
</div>
</xsl:template>
diff --git a/source/99_result/category/category.xsl b/source/99_result/category/category.xsl
new file mode 100644
index 0000000..ef6f388
--- /dev/null
+++ b/source/99_result/category/category.xsl
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:include href="[utility/master.xsl]"/>
+
+<xsl:variable name="meta">
+ <datasource type="main" mode="iterate" source="target/03_meta/categories.xml" target="category"/>
+ <datasource type="support" mode="full" source="target/03_meta/meta.xml" target="meta"/>
+ <target mode="xpath" value="concat(xalan:nodeset($datasource)/datasource/category/entry/@handle, '/index.html')"/>
+</xsl:variable>
+
+<xsl:template name="title-text">
+ <xsl:value-of select="/datasource/category/entry/@handle"/>
+</xsl:template>
+
+<xsl:template match="category/entry">
+ <div class="archiv columns">
+ <ul class="prettylist">
+ <xsl:apply-templates />
+ </ul>
+ </div>
+</xsl:template>
+
+<xsl:template match="category/entry/page">
+ <li>
+ <em>»</em>
+ <a href="{$url}/page/{@handle}">
+ <strong><xsl:value-of select="title"/></strong>
+ <p>
+ <xsl:copy-of select="digest/node()"/>
+ </p>
+ </a>
+ </li>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/source/99_result/tag/tag.xsl b/source/99_result/tag/tag.xsl
index 8eb6ca0..fd79a3c 100644
--- a/source/99_result/tag/tag.xsl
+++ b/source/99_result/tag/tag.xsl
@@ -17,8 +17,10 @@
</xsl:template>
<xsl:template match="tag/entry">
- <div class="archiv left articlelist archivlist">
- All articles tagged as &#187;<xsl:value-of select="@handle"/>&#171;
+ <div class="archiv articlelist archivlist">
+ <xsl:text>All articles tagged as &#187;</xsl:text>
+ <xsl:value-of select="@handle"/>
+ <xsl:text>&#171;</xsl:text>
<ol>
<xsl:apply-templates />
</ol>
@@ -27,7 +29,11 @@
<xsl:template match="tag/entry/article">
<li>
- <xsl:value-of select="date"/> » <a href="{$url}/article/{@handle}"><xsl:value-of select="title"/></a>
+ <xsl:value-of select="date"/>
+ <xsl:text> » </xsl:text>
+ <a href="{$url}/article/{@handle}">
+ <xsl:value-of select="title"/>
+ </a>
</li>
</xsl:template>