记录一下魔改步骤,不然主题一更新就打回原型了
底部运行时间
打开 handsome\component\footer.php
,将
<div class="wrapper b-t bg-light">
<span class="pull-right hidden-xs text-ellipsis">
<?php $this->options->BottomInfo(); ?>
Powered by <a target="blank" href="http://www.typecho.org">Typecho</a> | Theme by <a target="blank" href="https://www.ihewro.com/archives/489/">handsome</a>
</span>
<span class="text-ellipsis">© <?php echo date("Y");?> Copyright <?php $this->options->BottomleftInfo(); ?></span>
</div>
改为
<div class="wrapper b-t bg-light">
<span class="pull-right hidden-xs">
<?php $this->options->BottomInfo(); ?>
See <a target="blank" href="https://coding.lula.fun/baidu_sitemap.xml">SiteMap</a> | Theme by <a target="blank" href="https://www.ihewro.com/archives/489/">handsome</a>
</span>
[已稳定运行<?php echo floor((time()-strtotime('2017-4-15'))/86400);?>天]
<a target="blank" href="https://imoe.ink"> 由 iMoe 强力驱动</a>
</div>
截图
去掉首页的标题
修改文件为/handsomeindex.php
,大约33
行左右
删除
<h1 class="m-n font-thin h3 text-black l-h"><?php $this->options->title(); ?></h1>
截图
文章底部版权以及转载说明
修改文件/handsome/post.php
,约62
行
截图
代码
<blockquote>
<div>
<div>
<?php _e('文章名:'); ?> 《<?php $this->title() ?>》
<br>
<br>
本文链接:<a href="<?php $this->permalink() ?>"><?php $this->permalink() ?></a>
<br>
<br>
除特别注明外,文章均由 <strong>Neworld</strong> 原创
<br>
<br>
 <strong>原创文章</strong> 转载时请注明 <strong>出处</strong> 以及<strong>文章链接</strong>
</div>
</div>
</blockquote>
效果
评论区表情包修改
本项修改评论表情,将原始表情替换成泡泡和阿鲁,只需要替换主题文件里的OwO.min.js
和OwO.json
文件就可以了。文件下载:HS_OwO.zip
OwO.min.js
在handsome/assets/js/features
文件夹,OwO.json
在handsome/usr
文件夹。
效果
修复Gravatar头像不显示问题
在更新主题后出现了这个问题,查了下源码,这里使用v2ex的cdn,暂时没有防盗链2333
最后更新 2019-11-02