1
Fork 0

Move DRG mods HTML to a separate file.

This commit is contained in:
Bauke 2023-01-30 12:48:26 +01:00
parent 9e64b06c12
commit fa55c8dc17
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 16 additions and 9 deletions

View File

@ -0,0 +1,9 @@
<h2>Mods</h2>
<ul>
{% for mod_id in mods %}
{% let (mod_link, mod_title) = mod_id|drg_mod %}
<li>
<a href="{{ mod_link }}" target="_blank">{{ mod_title }}</a>
</li>
{% endfor %}
</ul>

View File

@ -24,15 +24,7 @@
</ul>
{% if let Some(mods) = speedrun.mods %}
<h2>Mods</h2>
<ul>
{% for mod_id in mods %}
{% let (mod_link, mod_title) = mod_id|drg_mod %}
<li>
<a href="{{ mod_link }}" target="_blank">{{ mod_title }}</a>
</li>
{% endfor %}
</ul>
{% include "drg-mods.html" %}
{% endif %}
{% if let Some(chapters) = speedrun.chapters %}
@ -54,6 +46,12 @@
{% endif %}
{% endif %}
{% if let Some(drg) = drg %}
{% if let Some(mods) = drg.mods %}
{% include "drg-mods.html" %}
{% endif %}
{% endif %}
<iframe
src="https://www.youtube-nocookie.com/embed/{{ video_id }}"
title="Embedded YouTube video player"