From b22fd638b41a90f604cd4f0f0ba761cf3b6562d6 Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 23 Nov 2024 14:44:32 +0100 Subject: [PATCH] eventi con date ripetute --- content/events/2024/laboratorio-rust/index.it.md | 9 ++++++--- layouts/_default/home.calendar.ics | 10 ++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/content/events/2024/laboratorio-rust/index.it.md b/content/events/2024/laboratorio-rust/index.it.md index 584c5c8..eeefc34 100644 --- a/content/events/2024/laboratorio-rust/index.it.md +++ b/content/events/2024/laboratorio-rust/index.it.md @@ -1,7 +1,7 @@ --- title: "Laboratorio di Rust tenuto da Carlo Milanesi" date: 2024-12-07T15:30:00+01:00 -publishDate: 2024-11-20T20:03:27+01:00 +publishDate: 2024-11-20T20:03:27+01:00 duration: 2h slug: "laboratorio-rust" type: post @@ -14,7 +14,10 @@ image_alt: "Logo di rust" summary: Nei sabato pomeriggi 7-14-21 di dicembre, presso Fablab Bergamo, il BgLUG organizza un laboratorio pratico di Rust. Mentore dell'evento sarà Carlo Milanesi, autore di numerosi testi sull'argomento. tags: - rust - - programmazione + - programmazione +repeat: + interval_days: 7 + count: 3 --- 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. -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/">}}). diff --git a/layouts/_default/home.calendar.ics b/layouts/_default/home.calendar.ics index beac4cc..249841a 100644 --- a/layouts/_default/home.calendar.ics +++ b/layouts/_default/home.calendar.ics @@ -77,6 +77,16 @@ URL:{{ .Permalink }} {{- $d := time.AsTime .Date }} {{- $duration := .Params.duration | default "1h" }} 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:VEVENT {{- end }}