make separate field for begin and localized begin
This commit is contained in:
parent
b9ffb942eb
commit
e3c1bd6fd6
@ -58,7 +58,8 @@ for event in list(cal.events):
|
||||
'name':event.name,
|
||||
'created':event.created.format(),
|
||||
'description': event.description,
|
||||
'begin': ' '.join(localized_begins), #non-breaking space characters to defeat markdown
|
||||
'localized_begin': ' '.join(localized_begins), #non-breaking space characters to defeat markdown
|
||||
'begin': event.begin.format(),
|
||||
'end': event.end.format(),
|
||||
'duration': date.compress(event.duration),
|
||||
'location': event.location
|
||||
|
@ -1,11 +1,12 @@
|
||||
---
|
||||
title: "{{ event.name }}"
|
||||
date: "{{ event.begin}}" #2021-06-10T10:46:33+02:00
|
||||
date: "{{ event.begin }}" #2021-06-10T10:46:33+02:00
|
||||
draft: false
|
||||
category: "calendar"
|
||||
event_begin: "{{ event.begin }}"
|
||||
event_end: "{{ event.end }}"
|
||||
duration: "{{ event.duration }}"
|
||||
localized_begin: "{{ event.localized_begin }}"
|
||||
{% if event.location %}
|
||||
location: "{{ event.location }}"
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user