From 45ad644f1b29b5672f4dcdd7637d86c24bd50752 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Wed, 21 Oct 2026 08:55:12 +0800 Subject: [PATCH] refactor(website): move the sponsor band into a template partial The sponsor band markup lived inline in index.html, so another page could show it only by copying the markup. The rendered homepage is byte-identical. Co-Authored-By: Claude --- website/templates/_sponsor_band.html | 25 +++++++++++++++++++++++++ website/templates/index.html | 26 +------------------------- 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 website/templates/_sponsor_band.html diff --git a/website/templates/_sponsor_band.html b/website/templates/_sponsor_band.html new file mode 100644 index 00000000..a47dabab --- /dev/null +++ b/website/templates/_sponsor_band.html @@ -0,0 +1,25 @@ +{% if sponsors %} + +{% endif %} diff --git a/website/templates/index.html b/website/templates/index.html index 4cb99d4c..4b024c3c 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -70,31 +70,7 @@ {% endblock %} {% block content %} -{% if sponsors %} - -{% endif %} +{% include "_sponsor_band.html" %}