Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2016 16:12:04 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r48936 - head/share/xml
Message-ID:  <201606171612.u5HGC4cX075511@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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() &lt; 5]">
+    <xsl:for-each select="document($news.project.xml-master)/descendant::day[position() &lt;= 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() &lt;= 5]">
+    <xsl:for-each select="document($news.press.xml-master)/descendant::story[position() &lt;= 6]">
       <xsl:variable name="year" select="../../name" />
       <xsl:variable name="month" select="../name" />
       <xsl:variable name="day" select="../name" />



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606171612.u5HGC4cX075511>