From 011fa740c9add5ff7389a337d2df81bcbf41cad3 Mon Sep 17 00:00:00 2001 From: "Simon L. B. Nielsen" <simon@FreeBSD.org> Date: Tue, 9 May 2006 06:10:48 +0000 Subject: [PATCH] Only include 5, not 6, project news items on the front page. This is mainly a band-aid to make the project news box not be way too large. The current problem is that the XSLT code counts 5 days, not 5 news items so when we, like we do now, have a few days with multiple entries the news box gets way to big. I could not find a quick way to change this, hence the band-aid. --- share/sgml/includes.misc.xsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/sgml/includes.misc.xsl b/share/sgml/includes.misc.xsl index 027d4267ba..bfab992c74 100644 --- a/share/sgml/includes.misc.xsl +++ b/share/sgml/includes.misc.xsl @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.29 2006/01/11 21:13:33 simon Exp $ --> +<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.30 2006/01/12 10:14:44 ceri Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> @@ -753,7 +753,7 @@ <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() < 5]"> <xsl:param name="year" select="ancestor::year/name" /> <xsl:param name="month" select="ancestor::month/name" /> <xsl:param name="day" select="name" />