Copyright © '+CastleData.date.getFullYear()+' '+CastleConfig.info.siteName+'
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