diff options
Fixed stream template article CSS classes
* last article on a page has to contain the CSS classes "last" and "article"
** previously the position had to be manually increased by one because of some whitespace-only nodes
** due to the removal of indentation to enable code highlighting this manual increase is not only unneeded but prevented the correct classes from being set
-rw-r--r-- | source/99_result/stream.xsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/99_result/stream.xsl b/source/99_result/stream.xsl index 4a17280..629adea 100644 --- a/source/99_result/stream.xsl +++ b/source/99_result/stream.xsl @@ -71,7 +71,7 @@ <xsl:template match="page/entry/article"> <xsl:choose> - <xsl:when test="position()+1 = last()"> + <xsl:when test="position() = last()"> <div class="last article"> <xsl:call-template name="get_article"> <xsl:with-param name="handle" select="@handle"/> |