From e06e8fba9cc7f253e10775b742d93227dd483382 Mon Sep 17 00:00:00 2001 From: Sietze van Buuren Date: Mon, 10 Jul 2023 09:40:37 +0200 Subject: [PATCH] Compleate speakers schedule overview - Schedule for all keynotes and talks on speakers page - Added macros for presentation overview tiles Signed-off-by: Sietze van Buuren --- docs/keynotes/index.md | 6 +----- docs/speakers/index.md | 19 ++++++++++++++++--- docs/talks/index.md | 13 +------------ include/tiles.md | 23 +++++++++++++++++++++++ 4 files changed, 41 insertions(+), 20 deletions(-) diff --git a/docs/keynotes/index.md b/docs/keynotes/index.md index 90552ed..a7e7e7c 100644 --- a/docs/keynotes/index.md +++ b/docs/keynotes/index.md @@ -13,8 +13,4 @@ and 15 minutes. The Auditorium's location is found on the [floor plan](../venue#floor-plan). -{% call tiles.presentation_tile_wall() %} - {% for key in keynotes %} - {{ tiles.presentation_tile(metadata=keynotes, id=key) }} - {% endfor %} -{% endcall %} \ No newline at end of file +{{ tiles.presentation_tile_overview(data=keynotes) }} diff --git a/docs/speakers/index.md b/docs/speakers/index.md index 366a423..1130b1e 100644 --- a/docs/speakers/index.md +++ b/docs/speakers/index.md @@ -3,9 +3,22 @@ hide: - toc --- +{% import 'tiles.md' as tiles %} + # Speakers -This sections features the following schedules: +This sections features the speaker schedules for all keynotes and talks. + +## Keynotes + +Please see the [keynotes schedule](/embedded-linux/keynotes/) for additional +information. + +{{ tiles.presentation_tile_overview(data=keynotes) }} + +## Talks / Presentations + +Please see the [talks schedule](/embedded-linux/talks/) for additional +information. -- [Keynotes schedule](../keynotes) -- [Talks / Presentations schedule](../talks) +{{ tiles.presentation_tile_timeslot_overview(data=talks) }} \ No newline at end of file diff --git a/docs/talks/index.md b/docs/talks/index.md index ab01d55..84de26b 100644 --- a/docs/talks/index.md +++ b/docs/talks/index.md @@ -14,15 +14,4 @@ place. Each talk will last about 20 min. plus 5 min. discussion time. The location of each meeting room is found on the [floor plan](../venue#floor-plan). -## - -{% set ns = namespace(old_time='') %} -{% call tiles.presentation_tile_wall() %} - {% for key, value in talks.items() %} - {% if ns.old_time != value.time %} - {{ tiles.presentation_time_tile(value.time) }} - {% endif %} - {{ tiles.presentation_tile(metadata=talks, id=key) }} - {% set ns.old_time = value.time %} - {% endfor %} -{% endcall %} \ No newline at end of file +{{ tiles.presentation_tile_timeslot_overview(data=talks) }} diff --git a/include/tiles.md b/include/tiles.md index d900f1e..904f1aa 100644 --- a/include/tiles.md +++ b/include/tiles.md @@ -85,4 +85,27 @@

{{ time }}

+{%- endmacro %} + + +{% macro presentation_tile_overview(data) %} +{% call presentation_tile_wall() %} + {% for key in data %} + {{ presentation_tile(metadata=data, id=key) }} + {% endfor %} +{% endcall %} +{%- endmacro %} + + +{% macro presentation_tile_timeslot_overview(data) %} +{% set ns = namespace(old_time='') %} +{% call presentation_tile_wall() %} + {% for key, value in data.items() %} + {% if ns.old_time != value.time %} + {{ presentation_time_tile(value.time) }} + {% endif %} + {{ presentation_tile(metadata=data, id=key) }} + {% set ns.old_time = value.time %} + {% endfor %} +{% endcall %} {%- endmacro %} \ No newline at end of file