fix some minor ics issues #275

Merged
paspo merged 2 commits from paspo/bglug.it:fixics into main 2024-10-05 09:57:33 +00:00
2 changed files with 88 additions and 83 deletions

View File

@ -13,9 +13,14 @@ server {
} }
location ~ /events/elenco/ { location ~ /events/elenco/ {
default_type "text/calendar";
try_files $uri /it/index.ics; try_files $uri /it/index.ics;
} }
location ~ \.ics$ {
default_type "text/calendar";
}
location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ { location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ {
return 301 https://bglug.it/it/chi-siamo/Statuto.pdf; return 301 https://bglug.it/it/chi-siamo/Statuto.pdf;
} }

View File

@ -1,4 +1,4 @@
{{- $numcaratteri := 66 }} {{- $numcaratteri := 66 -}}
BEGIN:VCALENDAR BEGIN:VCALENDAR
VERSION:2.0 VERSION:2.0
PRODID:-//BgLUG//BgLUG Events Calendar//EN PRODID:-//BgLUG//BgLUG Events Calendar//EN