ics calendar #265

Merged
paspo merged 6 commits from paspo/bglug.it:ics-calendar into main 2024-10-02 13:22:49 +00:00
5 changed files with 4 additions and 30 deletions
Showing only changes of commit b02e2a0c4a - Show all commits

View File

@ -47,7 +47,7 @@ params:
- title: Events Caledar
icon: fa-calendar-alt
pack: solid
url: https://bglug.it/it/eventi/index.ics
url: https://bglug.it/it/index.ics
amreo marked this conversation as resolved
Review

Si riesce a distinguerlo per lingua e a renderlo relativo?

Si riesce a distinguerlo per lingua e a renderlo relativo?
Review

non senza stravolgere (ancora) il tema

non senza stravolgere (ancora) il tema
- title: Facebook
icon: fa-facebook-f
pack: brands
@ -230,6 +230,7 @@ outputs:
home:
- html
- rss
- calendar
page:
- html
- rss
@ -237,7 +238,6 @@ outputs:
- rss
section:
- html
- calendar
- rss
taxonomy:
- html

View File

@ -1,13 +0,0 @@
---
type: section
title: Events
#description: "TODO: please fill this with a description"
sidebar_right: sidebar-eventi
output:
- calendar:
mediaType: text/calendar
mediaTypes:
text/calendar:
suffixes:
- ics
---

View File

@ -1,13 +0,0 @@
---
type: section
title: Eventi
#description: "TODO: non so come descrivere la sezione eventi"
sidebar_right: sidebar-eventi
output:
- calendar:
mediaType: text/calendar
mediaTypes:
text/calendar:
suffixes:
- ics
---

View File

@ -13,7 +13,7 @@ server {
}
location ~ /events/elenco/ {
try_files $uri /it/eventi/index.ics;
try_files $uri /it/index.ics;
}
location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ {

View File

@ -6,7 +6,7 @@ X-WR-TIMEZONE:Europe/Rome
CALSCALE:GREGORIAN
METHOD:PUBLISH
{{range .Pages -}}
{{range where .Site.Pages ".Page.Params.add_to_ics" true -}}
{{- $location := "" -}}
{{- $locations := .Params.locations -}}