6
0
Fork 0

Conferentiepagina en iCalendar bijgewerkt

This commit is contained in:
Michael Boelen 2023-05-22 11:09:23 +02:00
parent 861c0a1b96
commit babfec6522
2 changed files with 10 additions and 15 deletions

View file

@ -5,8 +5,7 @@
{{ if isset .Params "event_start" }}
{{ $event_start := .Params.event_start | time }}
<div class="highlight-box">
<div class="highlight-box highlight-box-nluug">
<h3>Locatie</h3>
<strong>{{ .Params.event_location }}</strong>
<p>{{ .Params.event_address.street_address }}<br>{{ .Params.event_address.postal_code }}, {{ .Params.event_address.city }}<br>{{ .Params.event_address.country_name }}</p>
@ -40,6 +39,11 @@
<p>Waarschuwing: dit evenement mist gegevens zoals start en einddatum.</p>
{{ end }}
<!-- TODO
<h2>Sprekers</h2>
Nog in te vullen
-->
<h2>Programma</h2>
{{ $.Scratch.Set "counter" 0 }}
@ -104,7 +108,7 @@
</table>
</div>
{{ else }}
<p>Waarschuwing: dit project is niet goed geconfigureerd in de front matter.</p>
<p>Waarschuwing: dit conferentieprogramma is niet goed geconfigureerd in de front matter.</p>
{{ end }}
{{ end }}

View file

@ -21,19 +21,10 @@ RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
SUMMARY:{{ .Title }}
DESCRIPTION:{{ trim (.Content | plainify) "\n" }} Voor meer informatie zie {{ .Site.Params.LiveSiteUrl }}{{ .Permalink }}
SUMMARY:{{ .Params.event_title | default .Title }}
DESCRIPTION:Voor meer informatie zie {{ .Permalink }}
DTSTART;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" .Params.event_start }}
DTEND;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" .Params.event_end }}
{{ if .Params.event_address }}LOCATION:{{ .Params.event_address.street_address }}, {{ .Params.event_address.city }}, {{ .Params.event_address.country_name }}{{ end }}
{{ else }}
SUMMARY:{{ index .Params.Properties.name 0 }}
{{ with .Params.Properties.url }}
DESCRIPTION: Voor meer informatie zie {{ index . 0 }}.
{{ else }}
DESCRIPTION: Voor meer informatie zie {{ .Site.Params.LiveSiteUrl }}{{ .Permalink }}
{{ end }}
{{ with .Params.Properties.location }}LOCATION:{{ index . 0 }}{{ end }}
END:VEVENT
END:VCALENDAR
{{ end }}{{ end }}
END:VCALENDAR{{ end }}{{ end }}