forked from BgLUG/bglug.it
Compare commits
4 Commits
5f1d5191a2
...
1a057541ff
Author | SHA1 | Date | |
---|---|---|---|
1a057541ff | |||
183be1d9ce | |||
cdfe2d61ab | |||
a0248212e4 |
@ -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
|
||||
|
@ -205,3 +205,7 @@ article header div.author {
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("images/mattermost_logo.svg");
|
||||
}
|
||||
|
||||
.icon.major {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
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
|
||||
|
@ -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
|
||||
---
|
@ -18,4 +18,4 @@ The **Bergamo Linux Users Group** meets every **Tuesday from 21.00 to 24.00** an
|
||||
|
||||
Any modifications/temporary closures will be communicated in **Mailing list** - [**read here if you are not subscribed**](https://lists.linux.it/pipermail/bglug/).
|
||||
|
||||
")
|
||||
")
|
||||
|
@ -18,4 +18,4 @@ Il **Bergamo Linux Users Group** si ritrova ogni **martedì dalle 21.00 alle 24.
|
||||
|
||||
Eventuali modifiche/chiusure temporanee verranno comunicate in **Mailing list** - [leggi qui se non sei iscritto](https://lists.linux.it/pipermail/bglug/).
|
||||
|
||||
")
|
||||
")
|
||||
|
BIN
content/pages/dove-siamo/spiegazione-entrata-fablab.png
Normal file
BIN
content/pages/dove-siamo/spiegazione-entrata-fablab.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 241 KiB |
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "Access is no longer through Via Mauro Gavazzeni."
|
||||
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
|
||||
@ -15,12 +15,12 @@ tags:
|
||||
- news
|
||||
---
|
||||
|
||||
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/) on some 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.
|
||||
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.
|
||||
|
||||
The new entrance, also for pedestrians and cyclists, is now at [Via San Giovanni Bosco 16](https://www.openstreetmap.org/node/12198842656).
|
||||
|
||||

|
||||
")
|
||||
|
||||
## Recommended route for those arriving by car from the Malpensata roundabout
|
||||
|
||||

|
||||
")
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "Non si entra più da Via Mauro Gavazzeni."
|
||||
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
|
||||
@ -15,12 +15,12 @@ tags:
|
||||
- news
|
||||
---
|
||||
|
||||
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/) di alcuni immobili, alcuni dei quali si trovano proprio sopra il cancello di Via Mauro Gavazzeni 3. Di conseguenza, tale cancello rimarrà chiuso per la durata dei lavori.
|
||||
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.
|
||||
|
||||
La nuova entrata, anche per pedoni e ciclisti, è ora quella di [Via San Giovanni Bosco 16](https://www.openstreetmap.org/node/12198842656).
|
||||
|
||||

|
||||
")
|
||||
|
||||
## Percorso consigliato per chi arriva in auto dalla rotonda di malpensata
|
||||
## Percorso consigliato per chi arriva in auto dalla rotonda della Malpensata
|
||||
|
||||

|
||||
")
|
||||
|
@ -26,11 +26,13 @@ items:
|
||||
items:
|
||||
- title: Events
|
||||
icon: fa-calendar-day
|
||||
url: /en/events/
|
||||
content: >
|
||||
Come to our events! You would learn all that there is to know about
|
||||
free software and *open source*
|
||||
- title: Schools
|
||||
icon: fa-graduation-cap
|
||||
url: /it/tags/scuola/
|
||||
content: >
|
||||
Follow our volunteers on their activities by schools in the province
|
||||
of Bergamo.
|
||||
|
@ -26,11 +26,13 @@ items:
|
||||
items:
|
||||
- title: Eventi
|
||||
icon: fa-calendar-day
|
||||
url: /it/eventi/
|
||||
content: >
|
||||
Accorri agli eventi che organizziamo! Avrai modo di imparare tutto
|
||||
quello che c'è da sapere sul software libero o *open source*
|
||||
- title: Scuole
|
||||
icon: fa-graduation-cap
|
||||
url: /it/tags/scuola/
|
||||
content: >
|
||||
Segui i nostri volontari nelle loro attività presso le scuole della
|
||||
provincia di Bergamo
|
||||
|
@ -12,6 +12,10 @@ server {
|
||||
rewrite ^/feed/.*$ /it/index.xml last;
|
||||
}
|
||||
|
||||
location ~ /events/elenco/ {
|
||||
try_files $uri /it/index.ics;
|
||||
}
|
||||
|
||||
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
|
22
layouts/partials/homepage/blocks/highlights.html
Normal file
22
layouts/partials/homepage/blocks/highlights.html
Normal file
@ -0,0 +1,22 @@
|
||||
<section class="wrapper style1">
|
||||
<div class="container">
|
||||
<div class="row gtr-200">
|
||||
{{- $item_cols := (div 12 (.item.items_per_row | default 3)) }}
|
||||
{{- range .item.items }}
|
||||
<section class="col-{{ $item_cols }} col-12-narrower">
|
||||
<div class="box highlight">
|
||||
{{- if .url -}}
|
||||
<a href="{{ .url }}">
|
||||
{{- end -}}
|
||||
<i class="icon solid major {{ .icon }}"></i>
|
||||
<h3>{{ .title }}</h3>
|
||||
{{- if .url -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
</div>
|
||||
</section>
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
Loading…
x
Reference in New Issue
Block a user