www.netz39.de/calendar-data.html

21 lines
486 B
HTML
Raw Normal View History

---
layout:
title:
permalink: /calendar-data/
---
[
{% for event in site.events %}
2024-03-14 22:22:31 +01:00
{% assign start = event.event.start | default: event.event_date %}
{% assign end = event.event.end | default: start %}
{
"title":"{{event.title}}",
2024-03-14 22:22:31 +01:00
"start": "{{start | date: "%Y-%m-%dT%H:%M:%S"}}",
"end": "{{end | date: "%Y-%m-%dT%H:%M:%S"}}",
"allDay": {% if start == end %}true{% else %}false{% endif %},
"url":"{{event.url}}"
}
{%unless forloop.last %},{%endunless%}
{% endfor %}
]