Add support for <link rel="alternate"> links to the RSS 2.0 feeds

where present so that browsers can automatically detect the presense
of a feed and present the user with a subscribe icon (orange RSS icon
on right side of location bar in Firefox) so they don't have to
manually look for a subscription button on the html page.
This commit is contained in:
Murray Stokely 2008-01-16 02:57:37 +00:00
parent 2b2f298231
commit 2365a91c92
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=31288
2 changed files with 16 additions and 2 deletions

View file

@ -1,4 +1,4 @@
<!-- $FreeBSD: www/share/sgml/header.ent,v 1.7 2007/11/06 13:16:59 gabor Exp $ -->
<!-- $FreeBSD: www/share/sgml/header.ent,v 1.8 2007/12/31 22:20:54 delphij Exp $ -->
<!-- FreeBSD HTML Header Entities -->
<!-- PUBLIC "-//FreeBSD//ENTITIES HTML FreeBSD Header Entities//EN" -->
@ -55,11 +55,22 @@
<link rel="stylesheet" media="screen" href="&stylesheet;" type="text/css" title="Normal Text">
<link rel="alternate stylesheet" media="screen" href="&stylesheetlarge;" type="text/css" title="Large Text">'>
<!ENTITY % header.rss "IGNORE">
<![ %header.rss; [
<!ENTITY header1.rsslink '
<link rel="alternate" type="application/rss+xml"
title="&rsstitle;" href="&rsslink;" />
'>
]]>
<!ENTITY header1.rsslink ''>
<!ENTITY header1 '
<head>
<title>&title;</title>
&header1.meta;
&header1.link;
&header1.rsslink;
<script type="text/javascript" src="&enbase;/layout/js/styleswitcher.js"></script>
</head>
'>

View file

@ -3,10 +3,13 @@
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd" [
<!ENTITY title "FreeBSD News Flash">
<!ENTITY email "freebsd-www">
<!ENTITY rsslink "rss.xml">
<!ENTITY rsstitle "&title;">
<!ENTITY % navinclude.about "INCLUDE">
<!ENTITY % header.rss "INCLUDE">
]>
<!-- $FreeBSD: www/share/sgml/templates.newsflash.xsl,v 1.2 2006/08/21 18:27:43 hrs Exp $ -->
<!-- $FreeBSD: www/share/sgml/templates.newsflash.xsl,v 1.3 2008/01/15 21:30:38 murray Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:cvs="http://www.FreeBSD.org/XML/CVS">