aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-28 09:54:04 -0300
committerEuAndreh <eu@euandre.org>2020-12-28 09:58:49 -0300
commit32fd5f398f76420aecfb6822f2dc3caddbe66469 (patch)
tree3fa61f9c57e9e1f77520ca273f535468ff58f1b2 /_layouts/post.html
parentMerge _layouts/cast.html into _layouts/post.html (diff)
downloadeuandre.org-32fd5f398f76420aecfb6822f2dc3caddbe66469.tar.gz
euandre.org-32fd5f398f76420aecfb6822f2dc3caddbe66469.tar.xz
Add direct-video flag
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 02f5bcb..1ba6d6e 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -29,6 +29,12 @@ layout: default
{% endif %}
{% if page.video %}
+ {% if site.flags.direct-video %}
+ <video controls>
+ <source src="{% link /resources/screencasts/{{ page.date | date: "%Y-%m-%d" }}-{{ page.slug }}.mkv %}" type="video/x-matroska">
+ </video>
+ {% endif %}
+
<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>