Edit shared headers and footers as page types

This commit is contained in:
2026-11-23 20:58:42 +08:00
parent 636788b65c
commit 9d386dd39c
40 changed files with 725 additions and 937 deletions
+5 -4
View File
@@ -1,9 +1,10 @@
'use strict';
jQuery(function ($) {
const $toggle = $('.menu-toggle');
const $nav = $('.primary-nav');
if ($toggle.length && $nav.length) {
$('.menu-toggle[aria-controls]').each(function () {
const $toggle = $(this);
const $nav = $(document.getElementById(this.getAttribute('aria-controls')));
if (!$nav.hasClass('primary-nav')) return;
$toggle.prop('hidden', false);
$nav.addClass('has-toggle');
@@ -20,7 +21,7 @@ jQuery(function ($) {
$toggle.trigger('focus');
}
});
}
});
$('[data-article-tabs]').each(function () {
const $feed = $(this);