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 - title: Events Caledar
icon: fa-calendar-alt icon: fa-calendar-alt
pack: solid pack: solid
url: https://bglug.it/it/eventi/index.ics url: https://bglug.it/it/index.ics
- title: Facebook - title: Facebook
icon: fa-facebook-f icon: fa-facebook-f
pack: brands pack: brands
@ -230,6 +230,7 @@ outputs:
home: home:
- html - html
- rss - rss
- calendar
page: page:
- html - html
- rss - rss
@ -237,7 +238,6 @@ outputs:
- rss - rss
section: section:
- html - html
- calendar
- rss - rss
taxonomy: taxonomy:
- html - 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/ { location ~ /events/elenco/ {
try_files $uri /it/eventi/index.ics; try_files $uri /it/index.ics;
} }
location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ { location ~ ^/wp\-content/uploads/2008/02/Statuto\.pdf$ {

View File

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