diff options
author | rsiddharth <rsd@gnu.org> | 2015-12-16 22:24:22 -0500 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2015-12-16 22:24:22 -0500 |
commit | b7d9ae60ad92468cbf5e34ea1b6cf8a1656c8768 (patch) | |
tree | faaf0b134b93dd53b42352b688274931c3a6571d /templates/lp-sch-2016.jinja2 | |
parent | 20221a99b23f625a0b45859c9e22948e3fc32a0d (diff) |
template: `id', `class' attr. for block elements.
block elements include:
- <header>
- <section>
- <article>
Diffstat (limited to 'templates/lp-sch-2016.jinja2')
-rw-r--r-- | templates/lp-sch-2016.jinja2 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/lp-sch-2016.jinja2 b/templates/lp-sch-2016.jinja2 index ce31dee..e516157 100644 --- a/templates/lp-sch-2016.jinja2 +++ b/templates/lp-sch-2016.jinja2 @@ -23,7 +23,7 @@ {# make day header macro #} {% macro mk_day_header(day) %} - <header> + <header class="program-day-header"> <hgroup> <h2>{{ day }}</h2> </hgroup> @@ -32,7 +32,7 @@ {# make timeslot header macro #} {% macro mk_timeslot_header(timeslot) %} - <header> + <header class="program-timeslot-break-header"> <hgroup> <h2>{{ timeslot }}</h2> </hgroup> @@ -41,7 +41,7 @@ {# make session header macro #} {% macro mk_session_header(session) %} - <header> + <header class="program-session-header"> <hgroup> <h2>{{ session }}</h2> </hgroup> @@ -58,7 +58,7 @@ {# populate sessions macro #} {% macro populate_sessions(sessions, day_index, timeslot_index) %} {% for session, session_info in sessions.iteritems() %} {# session start #} - <section> <!-- day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }} start --> + <section id="day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}" class="program-session"> <!-- day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }} start --> {{ mk_session_header(session) }} <p>{{ session_info['speaker'] }}</p> <p>{{ session_info['room'] }}</p> @@ -70,7 +70,7 @@ {# populate timeslots macro #} {% macro populate_timeslots(timeslots, day_index) %} {% for timeslot, sessions in timeslots.iteritems() %} {# timeslot start #} - <article> <!-- day-{{ day_index }}-timeslot-{{ loop.index }} start --> + <article id="day-{{ day_index }}-timeslot-{{ loop.index }}" class="program-timeslot"> <!-- day-{{ day_index }}-timeslot-{{ loop.index }} start --> {{ mk_timeslot_header(timeslot) }} {{ populate_sessions(sessions, day_index, loop.index) }} </article> <!-- day-{{ day_index }}-timeslot-{{ loop.index }} end --> @@ -79,7 +79,7 @@ {# lp 2016 template start #} {% for day, timeslots in schedule.iteritems() %} {# day start #} - <article> <!-- day-{{ loop.index }} start --> + <article id="day-{{ loop.index }}-program" class="program-day"> <!-- day-{{ loop.index }} start --> {{ mk_day_header(day) }} {{ populate_timeslots(timeslots, loop.index) }} </article> <!-- day-{{ loop.index }} end --> |