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 | |
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/cast.html | 28 | ||||
-rw-r--r-- | _layouts/post.html | 24 |
2 files changed, 24 insertions, 28 deletions
diff --git a/_layouts/cast.html b/_layouts/cast.html deleted file mode 100644 index 42ab071..0000000 --- a/_layouts/cast.html +++ /dev/null @@ -1,28 +0,0 @@ ---- -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 }} 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"> |