From 15167cf36e93545b339ba45a9f607b831f12cd92 Mon Sep 17 00:00:00 2001 From: "rust-lang.xfoss.com" Date: Fri, 1 Dec 2023 14:36:33 +0800 Subject: [PATCH] Updated the last-updated. --- theme/pagetoc.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/theme/pagetoc.js b/theme/pagetoc.js index 2e79f03..5bfb6df 100644 --- a/theme/pagetoc.js +++ b/theme/pagetoc.js @@ -65,3 +65,12 @@ if(document.querySelector("#document-not-found404")) { } }, 1000); } + +var f = document.getElementById("last-change"); +if (f) { + var text = f.innerHTML; + text = text.replace("Last change", "知识共享许可协议,CC - 最后修改") + text = text.replace("commit", "于提交") + + f.innerHTML = text +}