mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
13 lines
442 B
JavaScript
13 lines
442 B
JavaScript
// (function() {
|
|
// var allSubMenuItems = document.querySelectorAll('.submenu-item'),
|
|
// href = window.location.href,
|
|
// path = href.replace(/^https?\:/i, "");
|
|
// for (var i = 0; i < allSubMenuItems.length; i++) {
|
|
// var datapath = allSubMenuItems[i].dataset.pagelink;
|
|
// console.log(`${path} and ${href}`)
|
|
// if (datapath === path) {
|
|
// allSubMenuItems[i].classList.add('active-page');
|
|
// }
|
|
// }
|
|
// })();
|