eventi con date ripetute #347

Merged
paspo merged 1 commits from paspo/bglug.it:repeated-events into main 2024-11-24 09:54:17 +00:00
2 changed files with 16 additions and 3 deletions
Showing only changes of commit b22fd638b4 - Show all commits

View File

@ -15,6 +15,9 @@ summary: Nei sabato pomeriggi 7-14-21 di dicembre, presso Fablab Bergamo, il BgL
tags: tags:
- rust - rust
- programmazione - programmazione
repeat:
interval_days: 7
count: 3
--- ---
Il **BGLUG** propone un corso di formazione gratuito sulla programmazione in linguaggio **Rust**. Il **BGLUG** propone un corso di formazione gratuito sulla programmazione in linguaggio **Rust**.
@ -33,4 +36,4 @@ Chi usasse Microsoft Windows, deve avere installato Windows Subsystem for Linux.
È richiesto segnalare la presenza in questo [modulo](https://cloud.bglug.it/apps/forms/s/x3HApGAm9DcRqWPd3F2rdMbi) per dimensionare correttamente l'aula. È richiesto segnalare la presenza in questo [modulo](https://cloud.bglug.it/apps/forms/s/x3HApGAm9DcRqWPd3F2rdMbi) per dimensionare correttamente l'aula.
Leggi le indicazioni per raggiungere la sede: [https://bglug.it/it/posts/2024/09/2024-09-28-cambio-entrata/]({{< relref "posts/2024/2024-09-28-cambio-entrata/">}}). Leggi le [indicazioni per raggiungere la sede]({{< relref "posts/2024/2024-09-28-cambio-entrata/">}}).

View File

@ -77,6 +77,16 @@ URL:{{ .Permalink }}
{{- $d := time.AsTime .Date }} {{- $d := time.AsTime .Date }}
{{- $duration := .Params.duration | default "1h" }} {{- $duration := .Params.duration | default "1h" }}
DTEND;TZID=Europe/Rome:{{dateFormat "20060102T150405" ($d.Add (time.ParseDuration $duration) ) }} DTEND;TZID=Europe/Rome:{{dateFormat "20060102T150405" ($d.Add (time.ParseDuration $duration) ) }}
{{- with .Params.repeat }}
{{- if and .interval_days .count }}
RRULE:FREQ=DAILY;INTERVAL={{ .interval_days }};COUNT={{ .count }}
{{- end }}
{{- with .other_dates }}
{{- range . }}
EXDATE;TZID=Europe/Rome:{{dateFormat "20060102T150405" . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
END:VEVENT END:VEVENT
{{- end }} {{- end }}