diff --git a/.gitea/workflows/build_and_push.yaml b/.gitea/workflows/build_and_push.yaml index 182ac9a..1d17fa8 100644 --- a/.gitea/workflows/build_and_push.yaml +++ b/.gitea/workflows/build_and_push.yaml @@ -32,9 +32,9 @@ jobs: sed -i "s/AbbreviatedHash\:.*$/AbbreviatedHash: ${H}/" config/_default/params.yaml - name: Build Hugo - uses: lowply/build-hugo@v0.129.0 - with: - args: --gc --minify --cleanDestinationDir + run: | + wget -O - https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_extended_0.135.0_linux-amd64.tar.gz | tar zxv + ./hugo --gc --minify --cleanDestinationDir - uses: actions/cache/save@v4 if: always() # salva in cache anche se la build fallisce diff --git a/config.yml b/config.yml index e79e131..ab38084 100644 --- a/config.yml +++ b/config.yml @@ -10,7 +10,10 @@ copyright: 2024 © Bergamo Linux Users Group paginate: 20 timeout: 1800s enableRobotsTXT: true +enableGitInfo: true params: + ics: + organizer: CN="BgLUG":MAILTO:info@bglug.it description: Bergamo Linux Users Group social: - title: Mattermost @@ -41,6 +44,10 @@ params: icon: fa-mail-bulk pack: solid url: https://lists.linux.it/listinfo/bglug + - title: Events Caledar + icon: fa-calendar-alt + pack: solid + url: https://bglug.it/it/index.ics - title: Facebook icon: fa-facebook-f pack: brands @@ -209,10 +216,21 @@ languages: defaultContentLanguage: it defaultContentLanguageInSubdir: true +outputFormats: + calendar: + baseName: index + isPlainText: true + mediaType: text/calendar + noUgly: false + permalinkable: false + root: false + protocol: webcal:// + outputs: home: - html - rss + - calendar page: - html - rss diff --git a/content/events/2024/gazebo-boccaleone/index.en.md b/content/events/2024/gazebo-boccaleone/index.en.md new file mode 100644 index 0000000..ac1bc49 --- /dev/null +++ b/content/events/2024/gazebo-boccaleone/index.en.md @@ -0,0 +1,26 @@ +--- +title: "Booth in Boccaleone!" +date: 2024-10-12T14:00:00+02:00 +duration: 4h +publishDate: 2024-10-08T20:00:00+02:00 +slug: "gazebo-boccaleone" +location_link: "[Boccaleone municipal green area and schoolyard on Gandhi Street](https://www.openstreetmap.org/node/7397291708)" +locations: boccaleone-scuola-corridoni +add_to_ics: true +type: post +image: locandina-ritagliata.png +image_alt: "Image with event title taken from the poster" +image_caption: "Credits: Gloria from [Boccaleone in rete](https://boccaleoneinrete.it/splash-un-tuffo-nelle-realta-di-boccaleone/)" +license: "Unknown" +summary: Booth at Splash 2024 in Boccaleone at 2:00 PM +tags: + - boccaleone +--- + +BGLUG, on the occasion of the [**Splash 2024**](https://boccaleoneinrete.it/splash-un-tuffo-nelle-realta-di-boccaleone/) event organized by the Boccaleone neighborhood network, will be present alongside [Fablab Bergamo](https://www.fablabbergamo.it/) with a booth where we will introduce ourselves. + +The event will take place on Saturday, October 12, 2024, from 2:00 PM to 6:00 PM at the [municipal green area at Gandhi Street](https://www.openstreetmap.org/node/7397291708). + +The event will be canceled in case of bad weather. + +![Official poster for the Splash 2024 event](locandina.png) diff --git a/content/events/2024/gazebo-boccaleone/index.it.md b/content/events/2024/gazebo-boccaleone/index.it.md new file mode 100644 index 0000000..03c9516 --- /dev/null +++ b/content/events/2024/gazebo-boccaleone/index.it.md @@ -0,0 +1,26 @@ +--- +title: "Gazebo a Boccaleone!" +date: 2024-10-12T14:00:00+02:00 +duration: 3h +publishDate: 2024-10-08T20:00:00+02:00 +slug: "gazebo-boccaleone" +location_link: "[Area verde comunale Boccaleone e cortile scuola in via Gandhi](https://www.openstreetmap.org/node/7397291708)" +locations: boccaleone-scuola-corridoni +add_to_ics: true +type: post +image: locandina-ritagliata.png +image_alt: "Immagine con il titolo dell'evento preso dalla locandina" +image_caption: "Credits: Gloria di [Boccaleone in rete](https://boccaleoneinrete.it/splash-un-tuffo-nelle-realta-di-boccaleone/)" +license: "Sconosciuta" +summary: Gazebo al Splash 2024 a Boccaleone alle 14:00 +tags: + - boccaleone +--- + +Il BGLUG, in occasione dell'evento [**Splash 2024**](https://boccaleoneinrete.it/splash-un-tuffo-nelle-realta-di-boccaleone/) organizzato dalla rete di quartiere di Boccaleone, sarà presente insieme a [Fablab Bergamo](https://www.fablabbergamo.it/) con un gazebo in cui presenteremo le nostre attività e ci presenteremo al quartiere. + +L'evento si svolgerà sabato 12 ottobre 2024 dalle 14:00 alle 18:00 presso l'[area verde comunale presso via Gandhi](https://www.openstreetmap.org/node/7397291708). + +In caso di maltempo l'evento verrà annullato. + +![Locandina ufficiale dell'evento Splash 2024](locandina.png) diff --git a/content/events/2024/gazebo-boccaleone/locandina-ritagliata.png b/content/events/2024/gazebo-boccaleone/locandina-ritagliata.png new file mode 100644 index 0000000..ecf83ad Binary files /dev/null and b/content/events/2024/gazebo-boccaleone/locandina-ritagliata.png differ diff --git a/content/events/2024/gazebo-boccaleone/locandina.png b/content/events/2024/gazebo-boccaleone/locandina.png new file mode 100644 index 0000000..19aa7ca Binary files /dev/null and b/content/events/2024/gazebo-boccaleone/locandina.png differ diff --git a/content/events/_index.en.md b/content/events/_index.en.md deleted file mode 100644 index 726fb10..0000000 --- a/content/events/_index.en.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -type: section -title: Events -#description: "TODO: please fill this with a description" -sidebar_right: sidebar-eventi ---- diff --git a/content/events/_index.it.md b/content/events/_index.it.md deleted file mode 100644 index 2059342..0000000 --- a/content/events/_index.it.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -type: section -title: Eventi -#description: "TODO: non so come descrivere la sezione eventi" -sidebar_right: sidebar-eventi ---- diff --git a/content/linuxday/2024/agenda/agenda.png b/content/linuxday/2024/agenda/agenda.png new file mode 100644 index 0000000..b47cfd0 Binary files /dev/null and b/content/linuxday/2024/agenda/agenda.png differ diff --git a/content/linuxday/2024/agenda/index.en.md b/content/linuxday/2024/agenda/index.en.md new file mode 100644 index 0000000..6d79ffc --- /dev/null +++ b/content/linuxday/2024/agenda/index.en.md @@ -0,0 +1,31 @@ +--- +title: "Linux Day '24 Schedule" +date: 2024-10-26T9:00:00+02:00 +publishDate: 2024-10-18T10:00:00+02:00 +duration: 9h +slug: "agenda" +type: post +image: logo-linux-day.png +image_alt: Official logo of theLinux Day" +image_caption: Italian Linux Society, CC0 +location_link: "[BergamoScienza](https://www.openstreetmap.org/node/12193292287)" +location_ics: Bergamo Scienza - Viale Papa Giovanni XXIII, 57 Bergamo +add_to_ics: true +locations: bergamo-scienza +summary: This year's Linux Day will be on October 26th at the Bergamo Science Center. +grouping: + - linuxday-featured + - linuxday-2024 +--- + +## Here We Go Again This Year + +The Linux Day is an extraordinary opportunity for the local community to come together and share their passion for open source. Bergamo is a beautiful and welcoming city, making it the perfect place for such an important event. + +The BGLug team has organized a fantastic venue for Saturday, October 26th, in Bergamo: + +* From 8:30 AM to 12:30 PM and from 2:45 PM to 5:45 PM, at the [Urban Center](https://www.openstreetmap.org/node/12193292287) – Bergamo Science Center, located at Viale Papa Giovanni XXIII, 57. It is easily accessible by public transport from the entire province and beyond, and will host talks and exhibition spaces. + +The classic **installation party** will be managed by appointment directly by the BGLUG team, who will provide their expertise to help you prepare your computer. Contact us via email at [info@bglug.it](mailto:info@bglug.it). + +![Event Schedule](agenda.png) diff --git a/content/linuxday/2024/agenda/index.it.md b/content/linuxday/2024/agenda/index.it.md new file mode 100644 index 0000000..3ccef89 --- /dev/null +++ b/content/linuxday/2024/agenda/index.it.md @@ -0,0 +1,33 @@ +--- +title: "Agenda Linux Day '24" +date: 2024-10-26T9:00:00+02:00 +publishDate: 2024-10-18T10:00:00+02:00 +duration: 9h +slug: "agenda" +type: post +image: logo-linux-day.png +image_alt: Logo ufficiale del Linux Day" +image_caption: Italian Linux Society, CC0 +location_link: "[BergamoScienza](https://www.openstreetmap.org/node/12193292287)" +location_ics: Bergamo Scienza - Viale Papa Giovanni XXIII, 57 Bergamo +add_to_ics: true +locations: bergamo-scienza +summary: Il linux day di quest'anno sarà il 26 ottobre a Bergamo Science Center. +grouping: + - linuxday-featured + - linuxday-2024 +--- + +## Anche quest'anno ci siamo + +Il linux day è un'opportunità straordinaria per la comunità locale di riunirsi e condividere la loro passione per l'open source. Bergamo è una città bellissima e ospitale, e sarà il luogo perfetto per un evento così importante. + +Lo staff di BgLug ha organizzato per la giornata di Sabato 26 Ottobre una fantastica location in Bergamo per talk e spazi espositivi: + +* dalle 8:30 alle 12:30 e dalle 14:45 alle 17:45, presso il [Urban Center](https://www.openstreetmap.org/node/12193292287) - Bergamo Science Center, in Viale Papa Giovanni XXIII n.57, facilmente raggiungibile con i mezzi pubblici provenienti da tutta la provincia. + +Oltre ai talk si potranno seguire i laboratori proposti e il classico **installation party** sarà gestito, su appuntamento, dallo staff di BgLug che si metterà a disposizione per scegliere la distribuzione più adeguata e rinnovare insieme il vostro pc. + +Contattateci tramite la mail [info@bglug.it](mailto:info@bglug.it). + +![Agenda degli orari](agenda.png) diff --git a/content/linuxday/2024/agenda/logo-linux-day.png b/content/linuxday/2024/agenda/logo-linux-day.png new file mode 100644 index 0000000..a1550de Binary files /dev/null and b/content/linuxday/2024/agenda/logo-linux-day.png differ diff --git a/content/posts/2024/2024-09-28-cambio-entrata/index.en.md b/content/posts/2024/2024-09-28-cambio-entrata/index.en.md index 4612f46..ee5e64a 100644 --- a/content/posts/2024/2024-09-28-cambio-entrata/index.en.md +++ b/content/posts/2024/2024-09-28-cambio-entrata/index.en.md @@ -1,18 +1,15 @@ --- title: "Access is no longer through Mauro Gavazzeni street" date: 2024-09-28T23:14:11+02:00 -#expiryDate: # set this if the post should be removed automatically some time in the future -#publishDate: # set this if the post should be published automatically some time in the future slug: "2024-09-28-cambio-entrata" type: post -# image: image.png # if you don't specify an image, the first available is used -# image_alt: description of the featured image. The image ratio should be 360x250. -# image_caption: Image credits: author and license -# if not specified, CC-BY-SA is implied -# license: "[CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)" +image: nuova-entrata-patronato.png +image_alt: "This is the new gate through which you enter." +image_caption: "Credits: Luca Sarga, CC0" summary: Due to construction work, the entrance has been moved to Via San Giovanni Bosco 16. tags: - - news + - accesso-e-orari + - avviso --- The Patronato San Vincenzo, the facility that hosts the FabLab (and therefore also us), has begun [renovation work](https://www.ecodibergamo.it/stories/premium/bergamo-citta/a-nuovo-spazi-servizi-patronato-bergamo-si-rifa-look-o_2510292_11/) of its buildings, some of which are located directly above the gate at Via Mauro Gavazzeni 3. As a result, this gate will remain closed for the duration of the work. diff --git a/content/posts/2024/2024-09-28-cambio-entrata/index.it.md b/content/posts/2024/2024-09-28-cambio-entrata/index.it.md index a2df56e..7e565c8 100644 --- a/content/posts/2024/2024-09-28-cambio-entrata/index.it.md +++ b/content/posts/2024/2024-09-28-cambio-entrata/index.it.md @@ -1,18 +1,15 @@ --- title: "Non si entra più da Via Mauro Gavazzeni" date: 2024-09-28T23:14:11+02:00 -#expiryDate: # impostare se il post deve essere rimosso automaticamente nel futuro -#publishDate: # impostare se il post deve essere pubblicato automaticamente nel futuro slug: "2024-09-28-cambio-entrata" type: post -# image: image.png # se non metti un'immagine, viene presa la prima immagine del post -# image_alt: "Descrizione dell'immagine. Il ratio dell'immagine deve essere 360x250." -# image_caption: Credits dell'immagine: autore e licenza -# se non indicato, si intente CC-BY-SA -# license: "[CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)" +image: nuova-entrata-patronato.png +image_alt: "Questo è il nuovo cancello da cui sì entra" +image_caption: "Credits: Luca Sarga, CC0" summary: A causa dei lavori di costruzione, l'ingresso è stato spostato in Via San Giovanni Bosco 16. tags: - - news + - accesso-e-orari + - avviso --- Il Patronato San Vincenzo, la struttura che ospita il FabLab (e quindi anche noi), ha iniziato i [lavori di ristrutturazione](https://www.ecodibergamo.it/stories/premium/bergamo-citta/a-nuovo-spazi-servizi-patronato-bergamo-si-rifa-look-o_2510292_11/) dei propri immobili, alcuni dei quali si trovano sopra l'ingresso di Via Mauro Gavazzeni 3. Di conseguenza, tale cancello rimarrà chiuso per la durata dei lavori. diff --git a/content/posts/2024/2024-09-28-cambio-entrata/nuova-entrata-patronato.png b/content/posts/2024/2024-09-28-cambio-entrata/nuova-entrata-patronato.png new file mode 100644 index 0000000..11ca177 Binary files /dev/null and b/content/posts/2024/2024-09-28-cambio-entrata/nuova-entrata-patronato.png differ diff --git a/docker/rootfs/etc/nginx/http.d/default.conf b/docker/rootfs/etc/nginx/http.d/default.conf index 7961041..ef5c44d 100644 --- a/docker/rootfs/etc/nginx/http.d/default.conf +++ b/docker/rootfs/etc/nginx/http.d/default.conf @@ -7,11 +7,27 @@ server { root /wwwroot; index index.html; + location ~ .* { + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-Content-Type-Options "nosniff"; + add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"; + add_header Content-Security-Policy "default-src 'self'; img-src https://*; child-src 'none';"; + } + location ~ ^/feed { rewrite ^/feed$ /it/index.xml last; rewrite ^/feed/.*$ /it/index.xml last; } + location ~ /events/elenco/ { + default_type "text/calendar"; + try_files $uri /it/index.ics; + } + + location ~ \.ics$ { + default_type "text/calendar"; + } + location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ { return 301 https://bglug.it/it/chi-siamo/Statuto.pdf; } @@ -27,7 +43,6 @@ server { location ~ .* { error_page 404 /it/404.html; } - } gzip on; diff --git a/layouts/_default/home.calendar.ics b/layouts/_default/home.calendar.ics new file mode 100644 index 0000000..beac4cc --- /dev/null +++ b/layouts/_default/home.calendar.ics @@ -0,0 +1,83 @@ +{{- $numcaratteri := 66 -}} +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:-//BgLUG//BgLUG Events Calendar//EN +X-WR-CALNAME:BgLUG Events Calendar +X-WR-TIMEZONE:Europe/Rome +CALSCALE:GREGORIAN +METHOD:PUBLISH +BEGIN:VTIMEZONE +TZID:Europe/Rome +LAST-MODIFIED:20240422T053451Z +TZURL:https://www.tzurl.org/zoneinfo-outlook/Europe/Rome +X-LIC-LOCATION:Europe/Rome +BEGIN:DAYLIGHT +TZNAME:CEST +TZOFFSETFROM:+0100 +TZOFFSETTO:+0200 +DTSTART:19700329T020000 +RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU +END:DAYLIGHT +BEGIN:STANDARD +TZNAME:CET +TZOFFSETFROM:+0200 +TZOFFSETTO:+0100 +DTSTART:19701025T030000 +RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU +END:STANDARD +END:VTIMEZONE +{{- range where .Site.Pages ".Page.Params.add_to_ics" true -}} + {{- $location := "" -}} + {{- $locations := .Params.locations -}} + {{- with (eq (printf "%T" $locations ) "string" ) -}} + {{- $location = $locations -}} + {{- end -}} + {{- with (eq (printf "%T" $locations ) "[]string" ) -}} + {{- $location = (index $locations 0) -}} + {{- end -}} + {{- if .Params.location_ics }} + {{- $location = .Params.location_ics }} + {{- end }} + {{- $description := "" }} + {{- with .Description }} + {{- $description = . }} + {{- end }} + {{- with .Summary }} + {{- $description = . }} + {{- end }} +BEGIN:VEVENT +SUMMARY:{{.Title}} +ORGANIZER;{{ .Site.Param "ics.organizer" }} +UID:{{ md5 .Permalink }}@bglug.it +SEQUENCE:0 +STATUS:CONFIRMED +TRANSP:TRANSPARENT + {{- if ne $description "" }} + {{- $description = replace $description "\n" " " }} + {{- $description = (print "DESCRIPTION:" $description ) | truncate 400 }} + {{- $i := 0 }} + {{- range seq 0 $numcaratteri ($description | len) }} +{{ strings.Repeat $i " " }}{{- substr $description . $numcaratteri }} + {{- $i = add $i 1 }} + {{- end }} + {{- end }} +LOCATION:{{ $location }} +URL:{{ .Permalink }} + {{- with (.Page.Resources.GetMatch .Params.image ) -}} + {{- $image := print "IMAGE;VALUE=URI;DISPLAY=BADGE;FMTTYPE=" .MediaType.String ":" .Permalink }} + {{- $i := 0 }} + {{- range seq 0 $numcaratteri ($image | len) }} +{{ strings.Repeat $i " " }}{{- substr $image . $numcaratteri }} + {{- $i = add $i 1 }} + {{- end }} +{{ end -}} +{{ with .Lastmod }}DTSTAMP:{{dateFormat "20060102T150405Z" . }} +{{ end -}} +{{ if .Date }}DTSTART;TZID=Europe/Rome:{{dateFormat "20060102T150405" .Date }} +{{- $d := time.AsTime .Date }} +{{- $duration := .Params.duration | default "1h" }} +DTEND;TZID=Europe/Rome:{{dateFormat "20060102T150405" ($d.Add (time.ParseDuration $duration) ) }} +{{- end }} +END:VEVENT +{{- end }} +END:VCALENDAR