diff options
author | EuAndreh <eu@euandre.org> | 2020-12-28 09:51:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-28 09:51:02 -0300 |
commit | 09736fde3c65f78c8d6896e9a171f70dce868ea9 (patch) | |
tree | 6289dad1a830b9fc56d9881c0b3590c9606407bc /_layouts/post.html | |
parent | linter.rb: Don't fail first build to avoid chicken and egg problem (diff) | |
download | euandre.org-09736fde3c65f78c8d6896e9a171f70dce868ea9.tar.gz euandre.org-09736fde3c65f78c8d6896e9a171f70dce868ea9.tar.xz |
Merge _layouts/cast.html into _layouts/post.html
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"> |