Move DRG mods HTML to a separate file.
This commit is contained in:
parent
9e64b06c12
commit
fa55c8dc17
|
@ -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>
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue