Use {% static %} for home page video subtitles

This commit is contained in:
Ben Sturmfels 2024-07-22 10:37:56 +10:00
parent 02efd52c48
commit 6636119200
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -52,7 +52,7 @@ strategies that defend FOSS (such as copyleft). <a href="/about" class="orange">
<section class="mh0 pa3 bg-light-blue ba b--gray">
<video style="height: auto;" controls="" poster="/videos/sfc-introduction-video_poster.jpg">
<source src="/videos/sfc-introduction_1080p.mp4" />
<track src="/docs/sfc-introduction-vtt-captions.txt" kind="subtitles" srclang="en" label="English" />
<track src="{% static 'docs/sfc-introduction-vtt-captions.txt' %}" kind="subtitles" srclang="en" label="English" />
<a href="/videos/sfc-introduction_1080p.mp4"><img src="/videos/sfc-introduction-video_poster.jpg" alt="Software Freedom Conservancy introduction video"></a><br/>
<a href="https://youtu.be/yCCxMfW0LTM">(watch on Youtube)</a>
</video>