diff options
author | EuAndreh <eu@euandre.org> | 2020-12-24 10:55:38 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-24 13:07:16 -0300 |
commit | 7be007ffb34d4f1be727c9d91570f32b47203117 (patch) | |
tree | 074c665a4c9a3fc51ddca41282d84783bbc432bf /_layouts/cast.html | |
parent | TODOs.org (diff) | |
download | euandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.gz euandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.xz |
Add support for screencasts, behind a feature flag
Diffstat (limited to '_layouts/cast.html')
-rw-r--r-- | _layouts/cast.html | 28 |
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 }} |