From a1e6058986ecc2d852adbe0755385900998fd422 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Mon, 26 Oct 2026 10:57:55 +0800 Subject: [PATCH] refactor: extract site topbar into a shared template partial Co-Authored-By: Claude --- website/templates/_topbar.html | 20 ++++++++++++++++++++ website/templates/category.html | 15 +-------------- website/templates/index.html | 14 +------------- website/templates/sponsorship.html | 14 +------------- 4 files changed, 23 insertions(+), 40 deletions(-) create mode 100644 website/templates/_topbar.html diff --git a/website/templates/_topbar.html b/website/templates/_topbar.html new file mode 100644 index 00000000..0fcde817 --- /dev/null +++ b/website/templates/_topbar.html @@ -0,0 +1,20 @@ + diff --git a/website/templates/category.html b/website/templates/category.html index 80f3753a..4ec943e8 100644 --- a/website/templates/category.html +++ b/website/templates/category.html @@ -13,20 +13,7 @@
- + {%+ with all_projects = true %}{% include "_topbar.html" %}{% endwith +%}
{% if parent_category %} diff --git a/website/templates/index.html b/website/templates/index.html index 35a8235a..165e77d3 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -9,19 +9,7 @@
- + {%+ with home = true %}{% include "_topbar.html" %}{% endwith +%}
diff --git a/website/templates/sponsorship.html b/website/templates/sponsorship.html index 72c5bc2d..cafbfda1 100644 --- a/website/templates/sponsorship.html +++ b/website/templates/sponsorship.html @@ -11,19 +11,7 @@
- + {%+ include "_topbar.html" +%}

Sponsorship