Skip to content

Commit 75de4f9

Browse files
authored
🤝 Merge pull request #126 from tim-schilling/youtube-speaking-template
Draft youtube speaking template.
2 parents acb9cdc + 3ca6150 commit 75de4f9

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% if session.templateContent %}{{ session.templateContent }}
2+
{% endif %}
3+
This talk was presented at: {{ site.domain }}{{ session.permalink }}
4+
5+
LINKS:{% if session.presenter_slugs %}{% for presenter_slug in session.presenter_slugs %}{% assign presenter = collections.presenters | find:presenter_slug %}{% assign presenter = presenter.data %}
6+
Follow {{ presenter.name }} 👇
7+
{% if presenter.social.github %}On GitHub: https://github.com/{{ presenter.social.github }}
8+
{% endif %}{% if presenter.social.mastodon %}On Mastodon: {{ presenter.social.mastodon }}
9+
{% endif %}{% if presenter.social.twitter %}On Twitter: https://twitter.com/{{ presenter.social.twitter }}
10+
{% endif %}{% if presenter.social.website %}Website: {{ presenter.social.website }}
11+
{% endif %}
12+
{% endfor %}{% endif %}
13+
14+
Follow DjangoCon US 👇
15+
{{ site.social.mastodon }}
16+
{{ site.social.twitter }}
17+
18+
Follow DEFNA 👇
19+
https://www.defna.org/
20+
21+
Video production by the presenter and DjangoCon US 2024 volunteers.

src/youtube-talks.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: Speaking Template for YouTube Videos
3+
layout: default
4+
description: |
5+
Our Speaking Template for YouTube Videos (this should not be in our sitemaps
6+
file)
7+
8+
sitemap: false
9+
10+
permalink: /speaking/youtube/
11+
---
12+
13+
<script src="https://cdn.tailwindcss.com"></script>
14+
15+
<div class="pb-2 hero">
16+
<div class="wrapper">
17+
<h1 class="text-center pageheading">{{ title }}</h1>
18+
</div>
19+
</div>
20+
21+
<div class="pt-6 block-container">
22+
<div class="wrapper">
23+
24+
{% for day in collections.sessionsByDateAndTime %}
25+
{% if forloop.index0 > 0 %}
26+
{% for slot in day[1] %}
27+
{% for session in slot.sessions %}
28+
{% if session.presenter_slugs %}
29+
<div class="event-byline mt-2 mb-2">
30+
<h4>{{ day[0] | formatDateTime: "LLL d " }}{{ slot.start | formatDateTime: "h:mm aaa" }} EDT - {{ session.title }}</h4>
31+
32+
<div>
33+
<a href="{{ post.video_url }}">On YouTube</a>
34+
</div>
35+
36+
<textarea rows="10" id="copy-{{ session.fileSlug }}">
37+
{% include "youtube-copy-and-paste.html", session:session %}
38+
</textarea>
39+
40+
<button class="btn bg-blue-200 border-solid border-2 border-grey-800 rounded-lg px-2 py-1" data-clipboard-action="copy" data-clipboard-target="#copy-{{ session.fileSlug }}">
41+
Copy to clipboard
42+
</button>
43+
</div>
44+
<hr>
45+
{% endif %}
46+
{% endfor %}
47+
{% endfor %}
48+
{% endif %}
49+
{% endfor %}
50+
51+
</div>
52+
</div>
53+
54+
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js"></script>
55+
<script>
56+
new ClipboardJS('.btn');
57+
</script>

0 commit comments

Comments
 (0)