diff --git a/astro/public/scripts/sn.js b/astro/public/scripts/sn.js new file mode 100644 index 0000000..731411a --- /dev/null +++ b/astro/public/scripts/sn.js @@ -0,0 +1,5 @@ +document.addEventListener("keydown", (event) => { + if (event.ctrlKey && event.key === "`") { + window.location.replace("/sn"); + } +}); diff --git a/astro/src/layouts/Layout.astro b/astro/src/layouts/Layout.astro index c1c5291..3a40fe9 100755 --- a/astro/src/layouts/Layout.astro +++ b/astro/src/layouts/Layout.astro @@ -26,6 +26,7 @@ const { title } = Astro.props; +