diff options
author | EuAndreh <eu@euandre.org> | 2020-12-24 05:48:44 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-24 05:50:10 -0300 |
commit | a9142c9f5ccdfab285f71f48f20573fe7bf8ddff (patch) | |
tree | 8ddf44569685afea7160154ce1c19e1795cd1678 /_layouts/podcast.html | |
parent | Use feature toggle to show podcast links (diff) | |
download | euandre.org-a9142c9f5ccdfab285f71f48f20573fe7bf8ddff.tar.gz euandre.org-a9142c9f5ccdfab285f71f48f20573fe7bf8ddff.tar.xz |
Add torrent.html page with WebTorrent
Diffstat (limited to '')
-rw-r--r-- | _layouts/podcast.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/_layouts/podcast.html b/_layouts/podcast.html index 982fbc6..197943f 100644 --- a/_layouts/podcast.html +++ b/_layouts/podcast.html @@ -8,9 +8,12 @@ layout: post </audio> <div class="torrent-link"> - <a href="/resources/podcasts/{{ page.date | date: "%Y-%m-%d" }}-{{ page.slug }}.ogg.torrent"> - torrent - </a> + {% capture torrent-file %}{{ site.url }}/resources/podcasts/{{ page.date | date: "%Y-%m-%d" }}-{{ page.slug }}.ogg.torrent{% endcapture %} + <a href="{{ torrent-file }}">torrent</a> + {% if site.torrent %} + | + <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a> + {% endif %} </div> {{ content }} |