diff options
Added descending sort by date to article datasources
Diffstat (limited to 'source')
-rw-r--r-- | source/02_data/articles.xsl | 6 | ||||
-rw-r--r-- | source/02_data/tags.xsl | 4 |
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> |