diff options
Diffstat (limited to 'templates/shortcodes/get_event.html')
-rw-r--r-- | templates/shortcodes/get_event.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/shortcodes/get_event.html b/templates/shortcodes/get_event.html new file mode 100644 index 0000000..1526685 --- /dev/null +++ b/templates/shortcodes/get_event.html @@ -0,0 +1,18 @@ +{% set meetups = load_data(path="events.toml") %} + +{% if meetups['recent'] %} +## {{ 'recent' | capitalize }} + +{% for item in meetups['recent'] %} +### {{ item.title }} + +{% if item.event_page %}yo{% endif %} + +{% if item.url %}**Link:** [Meetup.com]({{ item.url }}){% endif %} +**Date:** {% if item.date %}<time datetime="{{ item.date }}">{{ item.date | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }}</time> {% else %}(No date found) {% endif %} +**Venue:** {% if item.venue %}{{ item.venue }} – {% endif %}{% if item.address %}{{ item.address }} {% else %}(No venue) {% endif %} +{% if item.content -%}**Description:**<blockquote>{{ item.content | safe }}</blockquote>{% endif %} + +{% endfor %} +{% endif %} + |