From 7770d64ef380d3d57b65fdbfa450022a7fd8bf32 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 5 Sep 2026 14:35:44 -0400 Subject: [PATCH] feat(tabs): sync matching tab groups across page Adds a new tabs script and wires it into theme config so tab groups with identical tab names/order stay synchronized when a tab is selected. Updates tab markup to use unique generated IDs plus a `data-tab-name` hook for matching, refreshes tab styling for a cleaner/nav-like UI, and documents the linked-tab behavior in the blog guide. --- _config_theme.yml | 1 + _includes/tabs.html | 16 ++++---- _posts/guides/1970-01-01-blog-guide.md | 1 + _sass/styles.scss | 48 ++++++++++++++++++---- assets/js/tabs.js | 57 ++++++++++++++++++++++++++ 5 files changed, 107 insertions(+), 16 deletions(-) create mode 100644 assets/js/tabs.js diff --git a/_config_theme.yml b/_config_theme.yml index 921673ce..9c79ffc4 100644 --- a/_config_theme.yml +++ b/_config_theme.yml @@ -72,6 +72,7 @@ site-css: site-js: - href: "https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@2026.812.190302/dist/crowdin.js" - "/assets/js/crowdin-init.js" + - "/assets/js/tabs.js" theme-switcher: true theme-switcher-style: 'button' gtag: "G-SSW90X5YZX" diff --git a/_includes/tabs.html b/_includes/tabs.html index 711788b8..3815c905 100644 --- a/_includes/tabs.html +++ b/_includes/tabs.html @@ -1,15 +1,17 @@ -