svn commit: r48936 - head/share/xml

Allan Jude <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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" />
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.