add lastBuildDate and check for negative pubDate
This commit is contained in:
parent
dd0426c650
commit
d2ee45b1c2
|
@ -126,6 +126,7 @@
|
|||
<description><xsl:value-of select="$poddesc"/></description>
|
||||
<language>de-DE</language>
|
||||
<copyright>https://creativecommons.org/licenses/by-sa/2.0/de/</copyright>
|
||||
<lastBuildDate><xsl:call-template name="date-to-rfc822"><xsl:with-param name="date" select="date:date-time()"/><!--xsl:with-param name="tz">+0200</xsl:with-param--></xsl:call-template></lastBuildDate>
|
||||
<image>
|
||||
<title><xsl:value-of select="$imgtitle"/></title>
|
||||
<url><xsl:value-of select="$imgurl"/></url>
|
||||
|
@ -148,11 +149,6 @@
|
|||
<itunes:explicit>no</itunes:explicit>
|
||||
|
||||
<!--generator>C3D2 custom XSLT</generator-->
|
||||
<!--lastBuildDate>
|
||||
<xsl:call-template name="date-to-rfc822">
|
||||
<xsl:with-param name="date" select="$builddate"/>
|
||||
</xsl:call-template>
|
||||
</lastBuildDate-->
|
||||
<podcast:locked owner="{$mailto}">no</podcast:locked>
|
||||
<podcast:funding url="https://c3d2.de/unterstuetzen.html">C3D2 Unterstützen!</podcast:funding>
|
||||
<podcast:funding url="https://c3d2.de/membership.html">Mitglied werden!</podcast:funding>
|
||||
|
@ -201,7 +197,14 @@
|
|||
|
||||
<xsl:for-each select="newsfile">
|
||||
<xsl:sort select="date:seconds(document(.)/item/@date)" data-type="number" order="descending" />
|
||||
<xsl:if test="position() <= $maxitems">
|
||||
<xsl:if test="position() <= $maxitems and
|
||||
starts-with(
|
||||
date:difference(
|
||||
date:date-time(),
|
||||
concat(document(.)/item/@date, '+01:00')
|
||||
),
|
||||
'-'
|
||||
)">
|
||||
<xsl:choose>
|
||||
<xsl:when test="($selection = 'pentaradio' or $selection = 'pentamedia') and
|
||||
starts-with(., 'content/news/pentaradio') and
|
||||
|
|
Loading…
Reference in New Issue