aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-07-20 19:48:30 +0200
committerAdrian Kummerlaender2014-07-20 19:48:30 +0200
commite15b3bc2c4036363c5d9b9fd7e62d224920b5514 (patch)
treef7ac6508a5930cfb4176d8426e575474977e2048 /source
parente3b6ddeea3e7fa568f1d9ecd1fbbed4773702fe4 (diff)
downloadblog.kummerlaender.eu-e15b3bc2c4036363c5d9b9fd7e62d224920b5514.tar
blog.kummerlaender.eu-e15b3bc2c4036363c5d9b9fd7e62d224920b5514.tar.gz
blog.kummerlaender.eu-e15b3bc2c4036363c5d9b9fd7e62d224920b5514.tar.bz2
blog.kummerlaender.eu-e15b3bc2c4036363c5d9b9fd7e62d224920b5514.tar.lz
blog.kummerlaender.eu-e15b3bc2c4036363c5d9b9fd7e62d224920b5514.tar.xz
blog.kummerlaender.eu-e15b3bc2c4036363c5d9b9fd7e62d224920b5514.tar.zst
blog.kummerlaender.eu-e15b3bc2c4036363c5d9b9fd7e62d224920b5514.zip
Removed unnecessary extension distinction from page datasource
Diffstat (limited to 'source')
-rw-r--r--source/02_data/pages.xsl18
1 files changed, 4 insertions, 14 deletions
diff --git a/source/02_data/pages.xsl b/source/02_data/pages.xsl
index 4f3002f..85ea8ca 100644
--- a/source/02_data/pages.xsl
+++ b/source/02_data/pages.xsl
@@ -24,20 +24,10 @@
<xsl:template match="files/pages/file[./extension = '.md']">
<entry handle="{./name}">
- <xsl:choose>
- <xsl:when test="./extension = '.md'">
- <xsl:call-template name="formatter">
- <xsl:with-param name="format">/usr/bin/markdown</xsl:with-param>
- <xsl:with-param name="source" select="InputXSLT:read-file(./full)/text()"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="./extension = '.xml'">
- <xsl:copy-of select="InputXSLT:read-file(./full)/*"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="InputXSLT:read-file(./full)/text()"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:call-template name="formatter">
+ <xsl:with-param name="format">/usr/bin/markdown</xsl:with-param>
+ <xsl:with-param name="source" select="InputXSLT:read-file(./full)/text()"/>
+ </xsl:call-template>
</entry>
</xsl:template>