diff options
Diffstat (limited to '')
-rw-r--r-- | _layouts/post.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index 71e47f3..02f5bcb 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -13,6 +13,30 @@ layout: default </section> {% endif %} <section> + + {% 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 }} </section> <section class="post-footer"> |