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>
|
</ul>
|
||||||
|
|
||||||
{% if let Some(mods) = speedrun.mods %}
|
{% if let Some(mods) = speedrun.mods %}
|
||||||
<h2>Mods</h2>
|
{% include "drg-mods.html" %}
|
||||||
<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>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if let Some(chapters) = speedrun.chapters %}
|
{% if let Some(chapters) = speedrun.chapters %}
|
||||||
|
@ -54,6 +46,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if let Some(drg) = drg %}
|
||||||
|
{% if let Some(mods) = drg.mods %}
|
||||||
|
{% include "drg-mods.html" %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
src="https://www.youtube-nocookie.com/embed/{{ video_id }}"
|
src="https://www.youtube-nocookie.com/embed/{{ video_id }}"
|
||||||
title="Embedded YouTube video player"
|
title="Embedded YouTube video player"
|
||||||
|
|
Loading…
Reference in New Issue