Copyright © '+CastleData.date.getFullYear()+' '+CastleConfig.info.siteName+'
From 89ec65bf9d044a06fc63a0bb250c0a675ab6b459 Mon Sep 17 00:00:00 2001 From: ohmyga <40896676+ohmyga233@users.noreply.github.com> Date: Sat, 29 Feb 2020 17:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E4=BE=A7=E6=A0=8F=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/libs/Api.php | 6 ++++-- static/js/castle.min.js | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/libs/Api.php b/core/libs/Api.php index 91fc137..5bd8459 100644 --- a/core/libs/Api.php +++ b/core/libs/Api.php @@ -1,7 +1,7 @@ [ - 'siteName' => Helper::options()->title + 'siteName' => Helper::options()->title, + 'author' => Castle_Libs::getAdminScreenName(), + 'description' => Helper::options()->description ], //Castle Version diff --git a/static/js/castle.min.js b/static/js/castle.min.js index 51fc41e..5d5d728 100644 --- a/static/js/castle.min.js +++ b/static/js/castle.min.js @@ -7,9 +7,9 @@ \_____| \__,_| |___/ \__| |_| \___| ---------------------------------------- * Castle's JavaScript - * Last Update: 2020/02/29 [0.9.0] + * Last Update: 2020/02/29 [0.9.1] * Author: ohmyga (https://ohmyga.cn) * GitHub: https://github.com/ohmyga233/castle-Typecho-Theme/ * LICENSE: GPL V3 (https://www.gnu.org/licenses/gpl-3.0.html) **/ -var $$=mdui.JQ;var CastleData={"firstChild":document.body.firstChild,"date":new Date(),"scrollTop":"","comments":{"replyID":""}};var CastleCreate={BG:function(){var bg=document.createElement("div");bg.setAttribute("id","moe-bg");if(CastleConfig.setting.background.big){bg.style.backgroundImage="url('"+CastleConfig.setting.background.big+"')"};$$('body')[0].insertBefore(bg,CastleData.firstChild);var style=document.createElement("style");style.innerHTML='';if(CastleConfig.setting.background.color){style.innerHTML+='#moe-bg{background-color: '+CastleConfig.setting.background.color+'!important;}'};if(CastleConfig.setting.background.small){style.innerHTML+='@media (max-width: 600px) {#moe-bg{background-image: url(\''+CastleConfig.setting.background.small+'\')!important;}}'};$$('head').append(style)},Search:function(){var search=document.createElement("div");search.setAttribute("id","search-dialog");search.setAttribute("class","mdui-dialog");$$('body').append(search)},Header:function(){var id=$$('#header')[0];id.classList.add('moe-appbar');id.innerHTML='
'},Sidebar:function(){if(CastleConfig.is.login===true){CastleData.login={tooltip:CastleLang.sidebar.toolbar.logout,onclick:'CastleLogin.Logout()',icon:'power_settings_new'}}else{CastleData.login={tooltip:CastleLang.sidebar.toolbar.login,onclick:'CastleLogin.panel()',icon:'account_circle'}};var sidebarToolsBar='';var sidebarToolsBarBox={"box":"","has":""};if(CastleConfig.switch.sidebarToolsBar.settingBtn){sidebarToolsBar+=''}if(CastleConfig.switch.sidebarToolsBar.login){sidebarToolsBar+=''}if(CastleConfig.switch.sidebarToolsBar.darkBtn){sidebarToolsBar+=''}if(!CastleConfig.switch.sidebarToolsBar.settingBtn&&!CastleConfig.switch.sidebarToolsBar.login&&!CastleConfig.switch.sidebarToolsBar.darkBtn){sidebarToolsBarBox.box='';sidebarToolsBarBox.has=''}else{sidebarToolsBarBox.has=' moe-sidebar-toolbar-has';sidebarToolsBarBox.box=' '};var id=$$('#sidebar')[0];id.innerHTML=' '+sidebarToolsBarBox.box;CastleSidebar.menu();var dom=$$('#sidebar ul a');for(let i=0;i