aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/02_meta/paginated_articles.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/02_meta/paginated_articles.xsl b/source/02_meta/paginated_articles.xsl
index 9fb38a9..4ce71a2 100644
--- a/source/02_meta/paginated_articles.xsl
+++ b/source/02_meta/paginated_articles.xsl
@@ -11,7 +11,7 @@
<target mode="plain" value="paginated_articles.xml"/>
</xsl:variable>
-<xsl:variable name="total" select="floor(count(datasource/articles/entry) div 2)"/>
+<xsl:variable name="total" select="ceiling(count(datasource/articles/entry) div 2)"/>
<xsl:template match="articles/entry[position() mod 2 = 1]">
<entry index="{floor(position() div 2)}" total="{$total}">