svn commit: r48936 - head/share/xml
Allan Jude
allanjude at FreeBSD.org
Fri Jun 17 16:12:05 UTC 2016
Author: allanjude
Date: Fri Jun 17 16:12:04 2016
New Revision: 48936
URL: https://svnweb.freebsd.org/changeset/doc/48936
Log:
Increase the number of news and press items on the front page to 6
Fix a logic error (less than vs less than or equal)
Modified:
head/share/xml/libcommon.xsl
Modified: head/share/xml/libcommon.xsl
==============================================================================
--- head/share/xml/libcommon.xsl Fri Jun 17 16:11:14 2016 (r48935)
+++ head/share/xml/libcommon.xsl Fri Jun 17 16:12:04 2016 (r48936)
@@ -1153,13 +1153,13 @@
</xsl:template>
<!-- template: "html-index-news-project-items"
- pulls in the 5 most recent project items -->
+ pulls in the 6 most recent project items -->
<xsl:template name="html-index-news-project-items">
<xsl:param name="news.project.xml-master" select="'none'" />
<xsl:param name="news.project.xml" select="'none'" />
- <xsl:for-each select="document($news.project.xml-master)/descendant::day[position() < 5]">
+ <xsl:for-each select="document($news.project.xml-master)/descendant::day[position() <= 6]">
<xsl:variable name="year" select="ancestor::year/name" />
<xsl:variable name="month" select="ancestor::month/name" />
<xsl:variable name="day" select="name" />
@@ -1267,13 +1267,13 @@
</xsl:template>
<!-- template: "html-index-news-press-items"
- pulls in the 5 most recent press items -->
+ pulls in the 6 most recent press items -->
<xsl:template name="html-index-news-press-items">
<xsl:param name="news.press.xml-master" select="'none'" />
<xsl:param name="news.press.xml" select="''" />
- <xsl:for-each select="document($news.press.xml-master)/descendant::story[position() <= 5]">
+ <xsl:for-each select="document($news.press.xml-master)/descendant::story[position() <= 6]">
<xsl:variable name="year" select="../../name" />
<xsl:variable name="month" select="../name" />
<xsl:variable name="day" select="../name" />
More information about the svn-doc-head
mailing list