forked from BgLUG/bglug.it
Compare commits
5 Commits
cdfe2d61ab
...
c487ecadac
Author | SHA1 | Date | |
---|---|---|---|
c487ecadac | |||
f638a58ab5 | |||
37fb0f0900 | |||
1a057541ff | |||
183be1d9ce |
@ -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
|
||||
|
18
config.yml
18
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
|
||||
|
26
content/events/2024/gazebo-boccaleone/index.en.md
Normal file
26
content/events/2024/gazebo-boccaleone/index.en.md
Normal file
@ -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.
|
||||
|
||||

|
26
content/events/2024/gazebo-boccaleone/index.it.md
Normal file
26
content/events/2024/gazebo-boccaleone/index.it.md
Normal file
@ -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'[municipal green area at Gandhi Street](https://www.openstreetmap.org/node/7397291708).
|
||||
|
||||
In caso di maltempo l'evento verrà annullato.
|
||||
|
||||

|
BIN
content/events/2024/gazebo-boccaleone/locandina-ritagliata.png
Normal file
BIN
content/events/2024/gazebo-boccaleone/locandina-ritagliata.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 188 KiB |
BIN
content/events/2024/gazebo-boccaleone/locandina.png
Normal file
BIN
content/events/2024/gazebo-boccaleone/locandina.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 585 KiB |
@ -1,6 +0,0 @@
|
||||
---
|
||||
type: section
|
||||
title: Events
|
||||
#description: "TODO: please fill this with a description"
|
||||
sidebar_right: sidebar-eventi
|
||||
---
|
@ -1,6 +0,0 @@
|
||||
---
|
||||
type: section
|
||||
title: Eventi
|
||||
#description: "TODO: non so come descrivere la sezione eventi"
|
||||
sidebar_right: sidebar-eventi
|
||||
---
|
@ -12,6 +12,15 @@ server {
|
||||
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;
|
||||
}
|
||||
|
83
layouts/_default/home.calendar.ics
Normal file
83
layouts/_default/home.calendar.ics
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user