Browse Source

remove cumulative tag pages

svn path=/trunk/; revision=35544
tags/stw2018
paul 2 years ago
parent
commit
b394a05f2a
7 changed files with 12 additions and 158 deletions
  1. 5
    0
      tags/.htaccess
  2. 7
    14
      tags/default.xsl
  3. 0
    34
      tags/tagged.en.xhtml
  4. 0
    34
      tags/tagged.fr.xhtml
  5. 0
    34
      tags/tagged.nl.xhtml
  6. 0
    4
      tags/tagged.sources
  7. 0
    38
      tags/tagged.xsl

+ 5
- 0
tags/.htaccess View File

@@ -0,0 +1,5 @@
RewriteEngine On

RewriteRule ^tagged\.html /tags/tags.html [redirect=permanent]
RewriteRule ^tagged\.(..)\.html /tags/tags.$1.html [redirect=permanent]


+ 7
- 14
tags/default.xsl View File

@@ -7,24 +7,17 @@
<xsl:import href="../tools/xsltsl/events-utils.xsl" />
<xsl:import href="../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<!--
For documentation on tagging (e.g. fetching news and events), take a
look at the documentation under
/tools/xsltsl/tagging-documentation.txt
-->
<!-- The top level element of the input file is "buildinfo" -->
<xsl:template match="buildinfo">
<xsl:apply-templates select="node()"/>
</xsl:template>

<xsl:variable name="today"><xsl:value-of select="/buildinfo/@date" /></xsl:variable>
<!--display dynamic list of news items-->
<xsl:template match="tagged-news">
<xsl:template name="tagged-news" match="tagged-news">
<xsl:element name="ul">
<xsl:attribute name="class">tag list</xsl:attribute>

<xsl:for-each select="/buildinfo/document/set/news">
<xsl:for-each select="/buildinfo/document/set/news[translate(@date, '-', '') &lt;= translate($today, '-', '')]">
<xsl:sort select="@date" order="descending" />

<xsl:element name="li">
<span class="newsdate">[<xsl:value-of select="@date" />]</span>
<xsl:element name="a">
@@ -37,7 +30,7 @@
</xsl:template>
<!--display dynamic list of newsletters items-->
<xsl:template match="tagged-events">
<xsl:template name="tagged-events" match="tagged-events">
<xsl:element name="ul">
<xsl:attribute name="class">tag list</xsl:attribute>


+ 0
- 34
tags/tagged.en.xhtml View File

@@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>

<html>
<head>
<title>FSFE - tagged pages</title>
</head>
<body>
<p id="category"><a href="/tags/tags.html">Tags</a></p>
<h1>List of tagged pages</h1>
<p>View: <a href="#tagged-news">News</a> / <a href="#tagged-events">Events</a></p>

<h2 id="tagged-news">News</h2>
<tagged-news/>
<h2 id="tagged-events">Events</h2>
<tagged-events/>
</body>

<timestamp>$Date: 2011-01-13 15:29:42 +0100 (jeu. 13 janv. 2011) $ $Author: samtuke $</timestamp>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

+ 0
- 34
tags/tagged.fr.xhtml View File

@@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>

<html>
<head>
<title>FSFE - pages taguées</title>
</head>
<body>
<p id="category"><a href="/tags/tags.html">Tags</a></p>
<h1>Liste de pages taguées</h1>
<p>Voir : <a href="#tagged-news">Actualités</a> / <a href="#tagged-events">Évènements</a></p>

<h2 id="tagged-news">Actualités</h2>
<tagged-news/>
<h2 id="tagged-events">Évènements</h2>
<tagged-events/>
</body>

<timestamp>$Date: 2011-01-13 15:29:42 +0100 (jeu. 13 janv. 2011) $ $Author: samtuke $</timestamp>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

+ 0
- 34
tags/tagged.nl.xhtml View File

@@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
<title>FSFE - pagina's met trefwoorden</title>
</head>
<body>
<p id="category"><a href="/tags/tags.html">Trefwoorden</a></p>
<h1>Lijst van pagina's met trefwoorden</h1>
<p>Bekijk: <a href="#tagged-news">Nieuws</a> / <a href="#tagged-events">Evenementen</a></p>

<h2 id="tagged-news">Nieuws</h2>
<tagged-news/>
<h2 id="tagged-events">Evenementen</h2>
<tagged-events/>
</body>

<timestamp>$Datum: 2011-01-13 15:29:42 +0100 (don. 13 jan. 2011) $ $Auteur: samtuke $</timestamp>
<translator>André Ockers</translator>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

+ 0
- 4
tags/tagged.sources View File

@@ -1,4 +0,0 @@
news/*/news:[]
news/generated_xml/:[]
news/nl/nl:[]
events/*/event:[]

+ 0
- 38
tags/tagged.xsl View File

@@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../tools/xsltsl/tagging.xsl" />
<xsl:import href="../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<!--
For documentation on tagging (e.g. fetching news and events), take a
look at the documentation under
/tools/xsltsl/tagging-documentation.txt
-->
<!-- The top level element of the input file is "buildinfo" -->
<xsl:template match="buildinfo">
<xsl:apply-templates select="node()"/>
</xsl:template>
<!--display dynamic list of news items-->
<xsl:template match="tagged-news">
<xsl:call-template name="tagged-news"/>
</xsl:template>
<!--display dynamic list of newsletters items-->
<xsl:template match="tagged-events">
<xsl:call-template name="tagged-events">
<xsl:with-param name="absolute-fsfe-links" select="'no'" />
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

Loading…
Cancel
Save