blog.grace.moe

Source for the blog blog.grace.moe
git clone https://git.grace.moe/blog.grace.moe
Log | Files | Refs

commit 9e4447e04b953f70def211666349bd337e8bce00
parent 170ea7821fcf7802a8d1ece6b565ce12086ec28a
Author: gracefu <81774659+gracefuu@users.noreply.github.com>
Date:   Sun, 20 Apr 2025 00:06:34 +0800

Add link to site git

Diffstat:
Mlayouts/templates/base.shtml | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/layouts/templates/base.shtml b/layouts/templates/base.shtml @@ -265,7 +265,7 @@ ul, ol, dl, menu { </div> <footer id="base-footer" class="limit-children"> <hr id="base-footer-rule"> - <p id="base-no-cookie">This site uses no cookies. ❌🍪</p> + <p id="base-no-cookie">This <a href="/git/blog.grace.moe/log.html">site</a> uses no cookies. ❌🍪</p> </footer> </div> @@ -325,8 +325,15 @@ function clickListener(event) { } function refreshLinks() { - for (let a of document.querySelectorAll('a')) { - if (!a.href.endsWith('/') || a.href.match('.*//[^/]*/')[0] !== location.href.match('.*//[^/]*/')[0]) { continue; } + for (let a of document.querySelectorAll("a")) { + if ( + !a.href.endsWith("/") || + a.href.match("^.*//[^/]*/")[0] !== + location.href.match("^.*//[^/]*/")[0] || + a.href.match("^.*//[^/]*/git") !== null + ) { + continue; + } console.log(a); a.onmouseenter = mouseEnterListener; a.onclick = clickListener;