aboutsummaryrefslogtreecommitdiff
path: root/_layouts/podcast.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-24 05:48:44 -0300
committerEuAndreh <eu@euandre.org>2020-12-24 05:50:10 -0300
commita9142c9f5ccdfab285f71f48f20573fe7bf8ddff (patch)
tree8ddf44569685afea7160154ce1c19e1795cd1678 /_layouts/podcast.html
parentUse feature toggle to show podcast links (diff)
downloadeuandre.org-a9142c9f5ccdfab285f71f48f20573fe7bf8ddff.tar.gz
euandre.org-a9142c9f5ccdfab285f71f48f20573fe7bf8ddff.tar.xz
Add torrent.html page with WebTorrent
Diffstat (limited to '_layouts/podcast.html')
-rw-r--r--_layouts/podcast.html9
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 }}