diff options
Fixed total page value of paginated article source
* changed "floor" to "ceiling" to correctly handle uneven article counts
Diffstat (limited to 'source/02_meta')
-rw-r--r-- | source/02_meta/paginated_articles.xsl | 2 |
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}"> |