From 8f2a080d854c716370c09b0b62c9dc958ab6ae4c Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Sat, 16 May 2026 20:27:31 -0400 Subject: [PATCH 1/4] Factor out unit toggle code Only show toggle styles when JS is on --- _includes/schedule_table.html | 23 ++------------- _includes/unit_toggle.html | 55 +++++++++++++++++++++++++++++++++++ _layouts/base.html | 1 + css/style.scss | 16 ++++++++++ 4 files changed, 74 insertions(+), 21 deletions(-) create mode 100644 _includes/unit_toggle.html diff --git a/_includes/schedule_table.html b/_includes/schedule_table.html index f9899d5..9fc80d3 100644 --- a/_includes/schedule_table.html +++ b/_includes/schedule_table.html @@ -1,11 +1,11 @@ -
+
{% if include.show_header %} - + {% endif %} @@ -123,22 +123,3 @@
Date Time
RoutesDistance ()
RoutesDistance ()
- diff --git a/_includes/unit_toggle.html b/_includes/unit_toggle.html new file mode 100644 index 0000000..ee898aa --- /dev/null +++ b/_includes/unit_toggle.html @@ -0,0 +1,55 @@ + \ No newline at end of file diff --git a/_layouts/base.html b/_layouts/base.html index ab1fdbf..31fd756 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -127,6 +127,7 @@

Race Condition Running

{{ content }} +{% include unit_toggle.html %}