aboutsummaryrefslogblamecommitdiff
path: root/_layouts/cast.html
blob: 330aed7e004e162850520d5257c54885fc9e07dc (plain) (tree)



























                                                                                                                                                  
---
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 }}