参考文章:https://moesakura.world/archives/handsome-theme-modified-by-jindai-kirin/
创作者:https://moe.best/
魔改一时爽,更新火葬场。
记录一下魔改记录和流程,方便下次更新时再次魔改。
## 神代綺凛魔改的部分 ##
//---
添加下列文件,并在header.php中引入
handsome/assets/css/features/code/custom.min.css
handsome/assets/css/github.md.mod.css
handsome/assets/css/handsome.css
<link rel="stylesheet" href="<?php echo STATIC_PATH; ?>css/handsome.css?v=1.7.0" type="text/css" />
<link rel="stylesheet" href="<?php echo STATIC_PATH; ?>css/github.md.mod.css?v=1.4.7" type="text/css">
<link rel="stylesheet" href="<?php echo STATIC_PATH; ?>css/features/code/custom.min.css" type="text/css">
添加下列文件,并在footer.php中引入
handsome/assets/js/handsome.js
handsome/assets/js/core.min.js 中所有 #post-content 改为 .markdown-body
<script type="text/javascript" src="<?php echo STATIC_PATH; ?>js/handsome.js"></script>
//---
handsome/component/aside.php 中搜索 !--.aside-wrap-- ,并在此行的上一行添加
<a><img src="/usr/img/kotori.png" id="kotori" class="hidekotori" data-toggle="tooltip" data-placement="right" data-original-title="返回顶部"></a>在!-- / headnav --的下一行添加
<div id="bg"></div>## 依葫画瓢魔改的部分 ##
//---
删除handsome.min.css中关于头像外沿虚化部分。
//---
删除headnav.php闲言碎语部分。
//---
删除cross.php中style="background:url的那一大段,添加
<iframe src="/about/?nobackground=true" style="width:100%;" frameborder="0" scrolling="no" id="aboutPage" height="1164px"></iframe>
<div class="padder" style="max-width:1024px;margin-left:auto;margin-right:auto;padding:0;margin-top:30px;">删除cross.php中end of .center-part下面的那一大段联系方式和关于我。
//不喜欢默认的创建时间的排序,想改为按照最后修改时间排序。
将/var/Widget/Archive.php 搜索 仅输出文章
将table.contents.created
修改为table.contents.modified
//外部查看文章列表的信息中 显示创建时间->最后修改时间
将Handsome/libs/Content.php中的$parameterArray['date'] = $obj->date->timeStamp;
修改为$parameterArray['date'] = $obj->modified;