From 973fe0098f7d310c4f58f1917ddf443c0fb24bb0 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Sun, 28 Sep 2025 14:57:44 +0900 Subject: [PATCH 1/3] Bump anchor.js from 4.3 to 5.0 --- src/_layouts/default.html | 2 +- src/assets/js/app.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/_layouts/default.html b/src/_layouts/default.html index 18fa5ff265..4e3fde3fad 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.html @@ -70,7 +70,7 @@ - + diff --git a/src/assets/js/app.js b/src/assets/js/app.js index 2027130f13..7702634881 100644 --- a/src/assets/js/app.js +++ b/src/assets/js/app.js @@ -1,8 +1,9 @@ -$(() => { - // anchor-js +document.addEventListener('DOMContentLoaded', (event) => { anchors.options.visible = 'always'; anchors.add(); +}); +$(() => { // highlight.js hljs.configure({ languages: ['ruby', 'html', 'bash', 'sql'] From 4da1154b5a72b612578dc3a777933750e1dfcdf6 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Sun, 28 Sep 2025 15:50:53 +0900 Subject: [PATCH 2/3] Bump highlight.js from 11.9 to 11.11 --- src/_layouts/default.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_layouts/default.html b/src/_layouts/default.html index 4e3fde3fad..850d44aab7 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.html @@ -5,7 +5,7 @@ - + @@ -71,7 +71,7 @@ - + From 78dde65ae3362f26ab67be98e7cc302d2ad3ef24 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Sun, 28 Sep 2025 16:03:50 +0900 Subject: [PATCH 3/3] chore: Remove unuseed variable Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/assets/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/js/app.js b/src/assets/js/app.js index 7702634881..ed2e7fe81b 100644 --- a/src/assets/js/app.js +++ b/src/assets/js/app.js @@ -1,4 +1,4 @@ -document.addEventListener('DOMContentLoaded', (event) => { +document.addEventListener('DOMContentLoaded', () => { anchors.options.visible = 'always'; anchors.add(); });