aboutsummaryrefslogtreecommitdiff
path: root/_layouts/cast.html
blob: 42ab07197a4faeac344a1c3a7de3ead9390dfc09 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 }}.mkv.torrent{% endcapture %}
    <a href="{{ torrent-file }}">torrent</a>
    |
    <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a>
  </div>
{% endif %}

{{ content }}