bunteshaus.de/themes/buha/layouts/partials.old/rrule.html
2022-04-09 21:34:22 +02:00

14 lines
459 B
HTML

{{ $byday := "" }}
{{ $bymonth := "" }}
{{ partial "debug" (dict "context" . "filename" "index.html") }}
{{ range $rrule := split "RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10" ";" }}
{{ if in . "BYDAY" }}<br>
{{ $byday = index (split . "=") 1 }}
{{ end }}
{{ if in . "BYMONTH" }}<br>
{{ $bymonth = index (split . "=") 1 }}
{{ end }}
{{ end }}
{{ $byday }}<br>
{{ $bymonth }}<br>