aboutsummaryrefslogtreecommitdiff
path: root/source/02_data
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-26 13:58:47 +0200
committerAdrian Kummerlaender2014-07-26 13:58:47 +0200
commitd1519b500c0c32b3ad0a1af617e40dd5e0c3b3db (patch)
tree29e055c4ec92137885b57b05f624eb6329b28450 /source/02_data
parentb87c8b2a6c9beb57d3959663c0d316207629ab9b (diff)
downloadblog.kummerlaender.eu-d1519b500c0c32b3ad0a1af617e40dd5e0c3b3db.tar
blog.kummerlaender.eu-d1519b500c0c32b3ad0a1af617e40dd5e0c3b3db.tar.gz
blog.kummerlaender.eu-d1519b500c0c32b3ad0a1af617e40dd5e0c3b3db.tar.bz2
blog.kummerlaender.eu-d1519b500c0c32b3ad0a1af617e40dd5e0c3b3db.tar.lz
blog.kummerlaender.eu-d1519b500c0c32b3ad0a1af617e40dd5e0c3b3db.tar.xz
blog.kummerlaender.eu-d1519b500c0c32b3ad0a1af617e40dd5e0c3b3db.tar.zst
blog.kummerlaender.eu-d1519b500c0c32b3ad0a1af617e40dd5e0c3b3db.zip
Added descending sort by date to article datasources
Diffstat (limited to 'source/02_data')
-rw-r--r--source/02_data/articles.xsl6
-rw-r--r--source/02_data/tags.xsl4
2 files changed, 9 insertions, 1 deletions
diff --git a/source/02_data/articles.xsl b/source/02_data/articles.xsl
index bc41137..8900085 100644
--- a/source/02_data/articles.xsl
+++ b/source/02_data/articles.xsl
@@ -30,6 +30,12 @@
</xsl:for-each>
</xsl:template>
+<xsl:template match="files/articles">
+ <xsl:apply-templates select="file">
+ <xsl:sort select="name" order="descending"/>
+ </xsl:apply-templates>
+</xsl:template>
+
<xsl:template match="files/articles/file[./extension = '.md']">
<xsl:variable name="content">
<xsl:call-template name="formatter">
diff --git a/source/02_data/tags.xsl b/source/02_data/tags.xsl
index f5d1627..f04ec32 100644
--- a/source/02_data/tags.xsl
+++ b/source/02_data/tags.xsl
@@ -23,7 +23,9 @@
<xsl:template match="files/tags/*">
<entry handle="{name()}">
- <xsl:apply-templates />
+ <xsl:apply-templates select="file">
+ <xsl:sort select="name" order="descending"/>
+ </xsl:apply-templates>
</entry>
</xsl:template>