Postroutine e59a74eb91 Events: new readme (#948) | vor 7 Jahren | |
---|---|---|
.. | ||
README.md | vor 7 Jahren | |
__init__.py | vor 10 Jahren | |
events.py | vor 8 Jahren | |
events_list.html | vor 10 Jahren |
This plugin allows you to put events in your content via metadata. An iCal file is generated containing all events.
This plugin depends on the icalendar
package, which can be installed
using APT, DNF/YUM or pip:
pip install icalendar
You can define settings with the PLUGIN_EVENTS
variable:
PLUGIN_EVENTS = {
'ics_fname': 'calendar.ics',
}
Settings:
ics_fname
: Where the iCal file is writtenYou can use the following metadata in your content:
event-start
: When the event will start in "YYYY-MM-DD hh:mm"event-end
: When the event will stop in "YYYY-MM-DD hh:mm"event-duration
: The duration of the event [1]event-location
: Where the event takes place[1] To specify the event duration, use a number followed by a time unit:
w
: weeksd
: daysh
: hoursm
: minutess
: secondsExample in reST format:
:event-start: 2015-01-21 10:30
:event-duration: 2h
:event-location: somewhere
Example in Markdown format:
Event-start: 2015-01-21 10:30
Event-duration: 2h
Event-location: somewhere
To generate a sorted event list in its own dedicated page:
events_list.html
template under the templates directory of your themecontent/pages/events_list.rst
reST
Events list
###########
:slug: events-list
:summary:
:template: events_list