diff options
author | Vanja Cosic <1070957+vanjacosic@users.noreply.github.com> | 2023-10-28 18:23:13 +0200 |
---|---|---|
committer | Vanja Cosic <1070957+vanjacosic@users.noreply.github.com> | 2023-10-28 18:23:13 +0200 |
commit | 788c1bb279d9ce706ba6811c0dc2484c1a732106 (patch) | |
tree | 6c567d810d379d16bc56cf78f9cb3c930c7a6a10 /templates/macros.html | |
parent | e028ac38509a954a7d8808962dd57d400142ef64 (diff) | |
download | cph-rust-website-788c1bb279d9ce706ba6811c0dc2484c1a732106.zip |
Major redesign of the site
Affects structure, navigation, styles (light and dark mode), event data
Diffstat (limited to 'templates/macros.html')
-rw-r--r-- | templates/macros.html | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/templates/macros.html b/templates/macros.html index 7e5acb1..0ccadc1 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,37 +1,33 @@ {% macro event_attributes(event) %} <dl> - {% if event.url %} - <dt> - Signup - </dt> - <dd> - <a href="{{ event.url }}">{{ event.title}} on Meetup.com</a> - </dd> - {% endif %} - - <dt> - Date - </dt> + <dt>Date</dt> <dd> {% if event.date %} - <time datetime="{{ event.date }}">{{ event.date | date(format="%A, %e %B %Y", timezone="Europe/Berlin") }}</time> + <time datetime="{{ event.date }}">{{ event.date | date(format="%A, %e %B %Y at %R", timezone="Europe/Berlin") }}</time> {% else %} - (No date found) + <i>To be announced</i> {% endif %} </dd> - <dt> - Venue - </dt> + <dt>Venue</dt> <dd> {% if event.venue %} {{ event.venue }} – {% endif %} {% if event.address %}{{ event.address }} {% else %} - (No venue) + <i>To be announced</i> {% endif %} </dd> + <dt>Signup</dt> + <dd> + {% if event.url %} + <a href="{{ event.url }}">{{ event.title}} on Meetup.com</a> + {% else %} + <i>To be announced</i> + {% endif %} + </dd> + {% if event.content -%} <dt>Description</dt> <dd> @@ -39,4 +35,10 @@ </dd> {% endif %} </dl> -{% endmacro event_attributes %}
\ No newline at end of file +{% endmacro event_attributes %} + +{% macro last_update() %} +<footer> + <small>Last updated: {{ now()| date(format="%e %B at %H:%M", timezone="Europe/Berlin") }}</small> +</footer> +{% endmacro last_update %}
\ No newline at end of file |