xsl/gemini.xsl: implement calendar.gmi
This commit is contained in:
parent
a99b6a27ca
commit
68089a3fde
|
@ -169,18 +169,25 @@
|
|||
|
||||
<template match="/page/portal">
|
||||
<text> ## Kalender </text>
|
||||
<call-template name="calendar-events">
|
||||
<with-param name="limit" select="10"/>
|
||||
</call-template>
|
||||
<call-template name="calendar-events"/>
|
||||
|
||||
<text> ## Changelog </text>
|
||||
<apply-templates/>
|
||||
</template>
|
||||
|
||||
<template name="calendar-events">
|
||||
<param name="limit" select="5"/>
|
||||
<template match="calendar">
|
||||
<text> ## Kalender </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) >= 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) >= date:seconds(date:date())]">
|
||||
<sort select="date:seconds(start)" data-type="number" order="ascending" />
|
||||
|
||||
<if test="position() <= $limit">
|
||||
|
|
Loading…
Reference in New Issue