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.
This commit is contained in:
parent
c94049c7d4
commit
011fa740c9
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=27767
1 changed files with 2 additions and 2 deletions
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue