Fix schedule.xml rendering
This commit is contained in:
parent
61eec5458f
commit
a3f03d2273
|
@ -12,18 +12,18 @@
|
||||||
<day index="{{.Params.no}}" date="{{dateFormat "2006-01-02" .Params.event.start}}" start="{{dateFormat "2006-01-02T15:04:05" .Params.event.start}}" end="{{dateFormat "2006-01-02T15:04:05" .Params.event.end}}">
|
<day index="{{.Params.no}}" date="{{dateFormat "2006-01-02" .Params.event.start}}" start="{{dateFormat "2006-01-02T15:04:05" .Params.event.start}}" end="{{dateFormat "2006-01-02T15:04:05" .Params.event.end}}">
|
||||||
<room name="Saal23">
|
<room name="Saal23">
|
||||||
<event id="{{.Params.no}}" guid="456fb60c-5ce7-11e8-be47-1fb2912eb8{{.Params.no}}">
|
<event id="{{.Params.no}}" guid="456fb60c-5ce7-11e8-be47-1fb2912eb8{{.Params.no}}">
|
||||||
<date>2016-11-23T13:00:00</date>
|
<date>{{dateFormat "2006-01-02T15:04:05" .Params.event.start}}</date>
|
||||||
<start>13:00</start>
|
<start>{{dateFormat "15:04:05" .Params.event.start}}</start>
|
||||||
<duration>{{ $end := time .Params.event.end }}{{ $t := time "1970-01-01"}}{{ dateFormat "15:04" ( $t.Add ( $end.Sub (time .Params.event.start) ) ) }}</duration>
|
<duration>{{ $end := time .Params.event.end }}{{ $t := time "1970-01-01"}}{{ dateFormat "15:04" ( $t.Add ( $end.Sub (time .Params.event.start) ) ) }}</duration>
|
||||||
<room>Saal 23</room>
|
<room>Saal23</room>
|
||||||
<slug>dg-{{.Params.no}}</slug>
|
<slug>dg-{{.Params.no}}</slug>
|
||||||
<title>{{htmlEscape .Title}}</title>
|
<title>{{htmlEscape .Title}}</title>
|
||||||
<subtitle>{{with .Params.subtitle}}{{htmlEscape .}}{{end}}</subtitle>
|
<subtitle>{{with .Params.subtitle}}{{htmlEscape .}}{{end}}</subtitle>
|
||||||
<track/>
|
<track/>
|
||||||
<type/>
|
<type/>
|
||||||
<language>{{.Params.language}}</language>
|
<language>{{.Params.language}}</language>
|
||||||
<abstract>{{.Plain}}</abstract>
|
<abstract><![CDATA[{{htmlUnescape .Plain|safeHTML}}]]></abstract>
|
||||||
<description>{{.Plain}}</description>
|
<description><![CDATA[{{htmlUnescape .Plain|safeHTML}}]]></description>
|
||||||
<persons>
|
<persons>
|
||||||
<person id="0">{{htmlEscape .Params.speaker}}</person>
|
<person id="0">{{htmlEscape .Params.speaker}}</person>
|
||||||
</persons>
|
</persons>
|
||||||
|
|
Loading…
Reference in a new issue