xsl/gemini.xsl: implement calendar.gmi
c3d2-web deployed Details
c3d2-gemini deployed Details

This commit is contained in:
Astro 2022-03-05 01:17:22 +01:00
parent a99b6a27ca
commit 68089a3fde
1 changed files with 13 additions and 6 deletions

View File

@ -169,18 +169,25 @@
<template match="/page/portal">
<text>&#10;## Kalender&#10;</text>
<call-template name="calendar-events">
<with-param name="limit" select="10"/>
</call-template>
<call-template name="calendar-events"/>
<text>&#10;## Changelog&#10;</text>
<apply-templates/>
</template>
<template name="calendar-events">
<param name="limit" select="5"/>
<template match="calendar">
<text>&#10;## Kalender&#10;</text>
<call-template name="calendar-events">
<with-param name="limit" select="23"/>
<with-param name="src" select="@src"/>
</call-template>
</template>
<for-each select="document('../calendar-summary.xml')/page/calendar-summary/event[date:seconds(end) &gt;= date:seconds(date:date())]">
<template name="calendar-events">
<param name="limit" select="8"/>
<param name="src" select="'../calendar-summary.xml'"/>
<for-each select="document($src)/page/calendar-summary/event[date:seconds(end) &gt;= date:seconds(date:date())]">
<sort select="date:seconds(start)" data-type="number" order="ascending" />
<if test="position() &lt;= $limit">