xsl/calendar-summary: skip events older than 1 year
should speed up build process by much
This commit is contained in:
parent
e6fff13329
commit
2ca0fcf4f7
|
@ -29,6 +29,9 @@
|
||||||
<xsl:template match="event">
|
<xsl:template match="event">
|
||||||
<xsl:param name="link"/>
|
<xsl:param name="link"/>
|
||||||
|
|
||||||
|
<!-- Events must have started at least one year ago -->
|
||||||
|
<xsl:variable name="minstart" select="date:add(date:date-time(), '-P366D')"/>
|
||||||
|
<xsl:if test="starts-with(date:difference(start, $minstart), '-')">
|
||||||
<event>
|
<event>
|
||||||
<title>
|
<title>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
@ -59,6 +62,7 @@
|
||||||
</link>
|
</link>
|
||||||
<!-- TODO: Link -->
|
<!-- TODO: Link -->
|
||||||
</event>
|
</event>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
Loading…
Reference in New Issue