From dd029e4c8421abe2658ca3135f495124fad6f9a2 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 15 Feb 2020 16:58:25 +0800 Subject: [PATCH] add head.md --- theme/classic.php | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/theme/classic.php b/theme/classic.php index b6575cb..114cf71 100644 --- a/theme/classic.php +++ b/theme/classic.php @@ -90,7 +90,7 @@

-
+
+
+
+
+
+
+
+ + '.$head['name'].' + +
+'; + } if ($readme) { echo '
@@ -505,9 +524,15 @@ document.cookie='language='+str+'; path=/'; location.href = location.href; } + var $head = document.getElementById('head'); + if ($head) { + document.getElementById('head-div').parentNode.insertBefore(document.getElementById('head-div'),document.getElementById('list-div')); + $head.innerHTML = marked(document.getElementById('head-md').innerText); + + } var $readme = document.getElementById('readme'); if ($readme) { - $readme.innerHTML = marked(document.getElementById('readme-md').innerText) + $readme.innerHTML = marked(document.getElementById('readme-md').innerText); }