From ff8ffa0fd12d4275c450e9ed343d411364cd5d7a Mon Sep 17 00:00:00 2001 From: cxykevin Date: Mon, 12 Aug 2024 14:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=87=92=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=B1=95=E5=BC=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/index.hbs | 4 +++- theme/js/page.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/theme/index.hbs b/theme/index.hbs index c47e0d9..a47ad9a 100755 --- a/theme/index.hbs +++ b/theme/index.hbs @@ -68,9 +68,10 @@ 实验环境 {{ book_title }}
+ {{#if git_repository_url}} {{/if}} diff --git a/theme/js/page.js b/theme/js/page.js index 6eb8533..f9befa4 100644 --- a/theme/js/page.js +++ b/theme/js/page.js @@ -39,13 +39,13 @@ function changePage(url) { document.body.scrollTop = 0; var old_tag = document.getElementsByClassName("mdui-prose")[0]; - var old_topbar_tag = document.getElementsByClassName("topbar")[0]; + var old_topbar_tag = document.getElementsByClassName("navbtn")[0]; var old_navcard_tag = document.getElementsByClassName("navcard")[0]; var virtualtag = document.createElement('div'); virtualtag.insertAdjacentHTML('beforeend', xhr.responseText); var title = virtualtag.getElementsByTagName("title")[0].innerText; old_tag.innerHTML = virtualtag.getElementsByClassName("mdui-prose")[0].innerHTML; - old_topbar_tag.innerHTML = virtualtag.getElementsByClassName("topbar")[0].innerHTML; + old_topbar_tag.innerHTML = virtualtag.getElementsByClassName("navbtn")[0].innerHTML; old_navcard_tag.innerHTML = virtualtag.getElementsByClassName("navcard")[0].innerHTML; var elements = document.querySelectorAll('[active]'); -- 2.40.1