Skip to content

Commit 5c16067

Browse files
authored
🐛 Merge pull request #137 from djangocon/fix-youtube-talks-monday-skip
🐛 Stop skipping first day; render its sessions
2 parents 2d9c752 + eaeec50 commit 5c16067

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed

src/youtube-talks.html

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,45 @@ <h1 class="text-center pageheading">{{ title }}</h1>
2020
<div class="wrapper grid grid-cols-1 gap-4">
2121

2222
{% for day in collections.sessionsByDateAndTime %}
23-
{% if forloop.index0 > 0 %}
24-
{% for slot in day[1] %}
25-
{% for session in slot.sessions %}
26-
{% if session.presenter_slugs %}
27-
<div class="event-byline grid grid-cols-1 gap-2">
28-
<div class="flex items-center justify-between gap-2 mx-2">
29-
<h4 class="flex-grow mr-2">
30-
<span>{{ day[0] | formatDateTime: "LLL d " }}{{ slot.start | formatDateTime: "h:mm aaa" }} EDT -</span>
31-
<span id="copy-{{ session.title|slugify }}-title">
32-
{{ session.title }} with
33-
{% for presenter_slug in session.presenter_slugs %}
34-
{% assign presenter = collections.presenters | find:presenter_slug %}
35-
{% if not forloop.first %} and {% endif %}
36-
{{ presenter.data.name }}
37-
{% endfor %}
38-
</span>
39-
</h4>
40-
{% if post.video_url %}
41-
<div class="btn bg-teal-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 whitespace-nowrap" >
42-
<a href="{{ post.video_url }}">View on YouTube</a>
43-
</div>
44-
{% endif %}
45-
<button class="btn bg-teal-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 whitespace-nowrap" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.title|slugify }}-title">
46-
Copy to clipboard
47-
</button>
48-
</div>
23+
{% for slot in day[1] %}
24+
{% for session in slot.sessions %}
25+
{% if session.presenter_slugs %}
26+
<div class="event-byline grid grid-cols-1 gap-2">
27+
<div class="flex items-center justify-between gap-2 mx-2">
28+
<h4 class="flex-grow mr-2">
29+
<span>{{ day[0] | formatDateTime: "LLL d " }}{{ slot.start | formatDateTime: "h:mm aaa" }} EDT -</span>
30+
<span id="copy-{{ session.title|slugify }}-title">
31+
{{ session.title }} with
32+
{% for presenter_slug in session.presenter_slugs %}
33+
{% assign presenter = collections.presenters | find:presenter_slug %}
34+
{% if not forloop.first %} and {% endif %}
35+
{{ presenter.data.name }}
36+
{% endfor %}
37+
</span>
38+
</h4>
39+
{% if post.video_url %}
40+
<div class="btn bg-teal-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 whitespace-nowrap" >
41+
<a href="{{ post.video_url }}">View on YouTube</a>
42+
</div>
43+
{% endif %}
44+
<button class="btn bg-teal-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 whitespace-nowrap" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.title|slugify }}-title">
45+
Copy to clipboard
46+
</button>
47+
</div>
4948

50-
<div class="relative">
49+
<div class="relative">
5150
<textarea rows="10" id="copy-{{ session.title|slugify }}" class="w-full pr-32">
5251
{% include "youtube-copy-and-paste.html", session:session %}
5352
</textarea>
54-
<button class="btn bg-teal-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 absolute top-2 right-2" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.title|slugify }}">
55-
Copy to clipboard
56-
</button>
57-
</div>
53+
<button class="btn bg-teal-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1 absolute top-2 right-2" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.title|slugify }}">
54+
Copy to clipboard
55+
</button>
5856
</div>
59-
<hr>
60-
{% endif %}
61-
{% endfor %}
57+
</div>
58+
<hr>
59+
{% endif %}
6260
{% endfor %}
63-
{% endif %}
61+
{% endfor %}
6462
{% endfor %}
6563

6664
</div>

0 commit comments

Comments
 (0)