From fa55c8dc17e014ad5873a7f5eae9bf81a5b1116a Mon Sep 17 00:00:00 2001 From: Bauke Date: Mon, 30 Jan 2023 12:48:26 +0100 Subject: [PATCH] Move DRG mods HTML to a separate file. --- source/templates/drg-mods.html | 9 +++++++++ source/templates/video.html | 16 +++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 source/templates/drg-mods.html diff --git a/source/templates/drg-mods.html b/source/templates/drg-mods.html new file mode 100644 index 0000000..ed1e170 --- /dev/null +++ b/source/templates/drg-mods.html @@ -0,0 +1,9 @@ +

Mods

+ diff --git a/source/templates/video.html b/source/templates/video.html index 45c9129..376b7fa 100644 --- a/source/templates/video.html +++ b/source/templates/video.html @@ -24,15 +24,7 @@ {% if let Some(mods) = speedrun.mods %} -

Mods

- + {% 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 %} +