Readme.rst 685 B

1234567891011121314151617181920212223242526272829
  1. ical
  2. --------
  3. This plugin read the calendar defined in the page metadata : calendar :
  4. with::
  5. :calendar: /path/to/your/ics/file
  6. Example of code that can be added in page template ::
  7. {% if page.calendar %}
  8. <dl>
  9. {% for vevent in events[page.slug] %}
  10. <dt>{{ vevent.summary }}</dt>
  11. <dd>{{ vevent.description|replace('\n\n', '<br>') }}</dd>
  12. <dd>{{ vevent.dtstart }}</dd>
  13. <dd>{{ vevent.dtend }}</dd>
  14. <dd class="footer"><a href="{{ vevent.url }}" target="_blank">See more</a></dd>
  15. {% endfor %}
  16. </dl>
  17. {% endif %}
  18. this plugins needs icalendar module installed::
  19. pip install icalendar