supporto ics per tutte le pagine
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 5m50s

This commit is contained in:
Paolo Asperti 2024-09-30 19:24:15 +02:00
parent fe340ce68c
commit b02e2a0c4a
Signed by: paspo
GPG Key ID: 06D46905D19D5182
5 changed files with 4 additions and 30 deletions

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
- 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 -}}