add permalinks for program headings
This commit is contained in:
parent
be380c6d12
commit
044dea263b
3 changed files with 34 additions and 3 deletions
|
@ -11,15 +11,19 @@
|
|||
{% for date, events in program %}
|
||||
<section class="program-date">
|
||||
<h2 id="{{ date }}">
|
||||
{{ toDate(date).toLocaleDateString(lang, { weekday: 'long', month: 'short', day: 'numeric' }) }}
|
||||
<a class="permalink" href="#{{date}}">
|
||||
{{ toDate(date).toLocaleDateString(lang, { weekday: 'long', month: 'short', day: 'numeric' }) }}
|
||||
</a>
|
||||
</h2>
|
||||
<ul>
|
||||
{% for event in events %}
|
||||
<li class="timeslot">
|
||||
<div class="timeslot-container">
|
||||
<h3 id="{{date}}_{{loop.index}}">
|
||||
{% if event.livestream %}{% icon "solid:video", title="Livestream" %}{% endif %}
|
||||
{{ event.title | localized }}
|
||||
<a class="permalink" href="#{{date}}_{{loop.index}}">
|
||||
{% if event.livestream %}{% icon "solid:video", title="Livestream" %}{% endif %}
|
||||
{{ event.title | localized }}
|
||||
</a>
|
||||
</h3>
|
||||
|
||||
<div class="timeslot-time">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue