aboutsummaryrefslogtreecommitdiff
path: root/_layouts/cast.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_layouts/cast.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/_layouts/cast.html b/_layouts/cast.html
new file mode 100644
index 0000000..330aed7
--- /dev/null
+++ b/_layouts/cast.html
@@ -0,0 +1,28 @@
+---
+layout: post
+---
+
+{% if page.audio %}
+ <audio controls>
+ <source src="{% link /resources/podcasts/{{ page.date | date: "%Y-%m-%d" }}-{{ page.slug }}.ogg %}" type="audio/ogg">
+ <source src="{% link /resources/podcasts/{{ page.date | date: "%Y-%m-%d" }}-{{ page.slug }}.flac %}" type="audio/flac">
+ </audio>
+
+ <div class="torrent-link">
+ {% capture torrent-file %}{{ site.url }}/resources/podcasts/{{ page.date | date: "%Y-%m-%d" }}-{{ page.slug }}.ogg.torrent{% endcapture %}
+ <a href="{{ torrent-file }}">torrent</a>
+ |
+ <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a>
+ </div>
+{% endif %}
+
+{% if page.video %}
+ <div class="torrent-link">
+ {% capture torrent-file %}{{ site.url }}/resources/screencasts/{{ page.date | date: "%Y-%m-%d" }}-{{ page.slug }}.webm.torrent{% endcapture %}
+ <a href="{{ torrent-file }}">torrent</a>
+ |
+ <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a>
+ </div>
+{% endif %}
+
+{{ content }}