cvs commit: www/en Makefile index.xsl www/share/mk web.site.mk www/share/sgml includes.misc.xsl notices.xml

Simon L. Nielsen simon at FreeBSD.org
Sun Jun 27 15:27:18 GMT 2004


On 2004.06.27 06:22:31 +0000, Hiroki Sato wrote:
> hrs         2004-06-27 06:22:31 UTC
> 
>   FreeBSD doc repository
> 
>   Modified files:
>     en                   Makefile index.xsl 
>     share/mk             web.site.mk 
>     share/sgml           includes.misc.xsl 
>   Added files:
>     share/sgml           notices.xml 
>   Log:
>   Add notices.xml for Errata Notices and a new section
>   for them on the top page.

While I think it is a good thing to have something like this on the
front page, it does cludder the "right box" even more.

How about removing the explicit Announcement link (it's still linked
from the title) and only showing 5 items in project news and project
press ? (it's not like there are a lot of new additions to those to
all the time anyway).

I think this helps a bit until we decide on some "grand plan" for the
website in general.

I made a patch to do this (attached) and a build with it can be seen
on http://simon.nitro.dk/tmp/freebsdweb/ .

-- 
Simon L. Nielsen
FreeBSD Documentation Team
-------------- next part --------------
Index: en/index.xsl
===================================================================
RCS file: /home/ncvs/www/en/index.xsl,v
retrieving revision 1.104
diff -u -d -r1.104 index.xsl
--- en/index.xsl	27 Jun 2004 06:22:31 -0000	1.104
+++ en/index.xsl	27 Jun 2004 14:54:07 -0000
@@ -243,8 +243,7 @@
 			      <a href="{$u.rel.early}">
 			      <font size="+1" color="#990000"><b>New Technology Release:
 			    <xsl:value-of select="$rel.current"/></b></font></a><br/>
-			    <small>&#183; <a href="{$u.rel.announce}">Announcement</a><br/>
-			      &#183; <a href="{$base}/doc/en_US.ISO8859-1/books/handbook/install.html">Installation Guide</a><br/>
+			    <small>&#183; <a href="{$base}/doc/en_US.ISO8859-1/books/handbook/install.html">Installation Guide</a><br/>
 			      &#183; <a href="{$u.rel.notes}">Release Notes</a><br/>
 			      &#183; <a href="{$u.rel.hardware}">Hardware Notes</a><br/>
 			      &#183; <a href="{$u.rel.installation}">Installation Notes</a><br/>
@@ -256,8 +255,7 @@
 			      <font size="+1" color="#990000"><b>Production Release:
 			    <xsl:value-of select="$rel2.current"/></b></font></a><br/>
 			
-			    <small>&#183; <a href="{$u.rel2.announce}">Announcement</a><br/>
-			      &#183; <a href="{$base}/doc/en_US.ISO8859-1/books/handbook/install.html">Installation Guide</a><br/>
+			    <small>&#183; <a href="{$base}/doc/en_US.ISO8859-1/books/handbook/install.html">Installation Guide</a><br/>
 			      &#183; <a href="{$u.rel2.notes}">Release Notes</a><br/>
 			      &#183; <a href="{$u.rel2.hardware}">Hardware Notes</a><br/>
 			      &#183; <a href="{$u.rel2.installation}">Installation Notes</a><br/>
Index: share/sgml/includes.misc.xsl
===================================================================
RCS file: /home/ncvs/www/share/sgml/includes.misc.xsl,v
retrieving revision 1.12
diff -u -d -r1.12 includes.misc.xsl
--- share/sgml/includes.misc.xsl	27 Jun 2004 08:28:21 -0000	1.12
+++ share/sgml/includes.misc.xsl	27 Jun 2004 14:56:23 -0000
@@ -279,12 +279,12 @@
   </xsl:template>
 
   <!-- template: "html-index-news-project-items"
-       pulls in the 10 most recent project items -->
+       pulls in the 5 most recent project items -->
 
   <xsl:template name="html-index-news-project-items">
     <xsl:param name="news.project.xml" select="''" />
 
-    <xsl:for-each select="document($news.project.xml)/descendant::event[position() &lt;= 10]">
+    <xsl:for-each select="document($news.project.xml)/descendant::event[position() &lt;= 5]">
       <xsl:value-of select="$leadingmark" /><a>
 	<xsl:attribute name="href">
 	  news/newsflash.html#<xsl:call-template name="generate-event-anchor"/>
@@ -319,12 +319,12 @@
   </xsl:template>
 
   <!-- template: "html-index-news-press-items"
-       pulls in the 10 most recent press items -->
+       pulls in the 5 most recent press items -->
 
   <xsl:template name="html-index-news-press-items">
     <xsl:param name="news.press.xml" select="''" />
 
-    <xsl:for-each select="document($news.press.xml)/descendant::story[position() &lt; 10]">
+    <xsl:for-each select="document($news.press.xml)/descendant::story[position() &lt;= 5]">
       <xsl:value-of select="$leadingmark" /><a>
 	<xsl:attribute name="href">
 	  news/press.html#<xsl:call-template name="generate-story-anchor"/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-www/attachments/20040627/6c3e98a8/attachment.bin


More information about the freebsd-www mailing list