🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 使用方法 ### 修改方式一 * 打开`/handsome/component/footer.php`,找到`<div class="wrapper bg-light">`,修改成想要的样式 ``` <!-- 底部信息 --> <div class="wrapper bg-light"> <!-- 左侧底部 --> <div class="github-badge"> <a rel="license" href="http://www.typecho.org" target="_blank" title="由Typecho强力驱动"> <span class="badge-subject">Powered</span> <span class="badge-value bg-green">Typecho</span></a> </div> <!-- 右侧底部 --> <span class="pull-right hidden-xs text-ellipsis"> <?php $this->options->BottomInfo(); ?> <div class="github-badge"> <a rel="license" href="http://beian.miit.gov.cn/" target="_blank" title="粤ICP备XXXX号"> <span class="badge-subject">&copy;<?php echo date("Y");?></span> <span class="badge-value bg-blue">粤ICP备XXXX号</span></a> </div> </span> </div> <!-- /底部信息 --> ``` * 自定义CSS中加入 ``` /* 底部页脚小徽标 */ .github-badge { display: inline-block; border-radius: 4px; text-shadow: none; font-size: 12px; color: #fff; line-height: 15px; background-color: #abbac3; margin-bottom: 5px } .github-badge .badge-subject { display: inline-block; background-color: #4d4d4d; padding: 4px 4px 4px 6px; border-top-left-radius: 4px; border-bottom-left-radius: 4px } .github-badge .badge-value { display: inline-block; padding: 4px 6px 4px 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px } .github-badge .bg-blue {background-color: #3282b8} .github-badge .bg-purple {background-color: #3F51B5} .github-badge .bg-green {background-color: #3bca6e} ``` ## 修改方式二 1.将以下代码加入主题后台的开发者选项中的自定义CSS ``` /*底部页脚*/ .github-badge { display: inline-block; border-radius: 4px; text-shadow: none; font-size: 12px; color: #fff; line-height: 15px; background-color: #abbac3; margin-bottom: 5px } .github-badge .badge-subject { display: inline-block; background-color: #4d4d4d; padding: 4px 4px 4px 6px; border-top-left-radius: 4px; border-bottom-left-radius: 4px } .github-badge .badge-value { display: inline-block; padding: 4px 6px 4px 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px } .github-badge .bg-blue { background-color: #007ec6 } .github-badge .bg-orange { background-color: #ffa500 } .github-badge .bg-red { background-color: #f00 } .github-badge .bg-green { background-color: #3bca6e } .github-badge .bg-purple { background-color: #ab34e9 } ``` 2.将以下代码添加至后台主题设置博客`底部左侧信息`,信息修改成自己的: ``` <div class="github-badge"> <a href="./" title="©2019&nbsp;Rudy"> <span class="badge-subject">Copyright</span><span class="badge-value bg-blue">©2019&nbsp;Rudy</span> </a> </div> &nbsp;|&nbsp; <div class="github-badge"> <a href="http://www.miitbeian.gov.cn/" target="_blank" title="湘ICP备 xxxxxxxx号" style="cursor: url(&quot;/usr/plugins/HoerMouse/static/image/dew/link.cur&quot;), pointer;"> <span class="badge-subject">湘ICP备</span><span class="badge-value bg-green">20002004号</span> </a> </div> ``` 3.将以下代码添加至后台主题设置博客`底部右侧信息`: ``` <div class="github-badge"> <a href="http://www.typecho.org" target="_blank" title="由 Typecho 强力驱动" > <span class="badge-subject">Powered</span><span class="badge-value bg-blue">Typecho</span> </a> </div> &nbsp;|&nbsp; <div class="github-badge"> <a href="https://www.baidu.com/" target="_blank" title="baidu" > <span class="badge-subject">Theme</span><span class="badge-value bg-orange">Handsome</span> </a> </div> &nbsp;|&nbsp; <div class="github-badge"> <a href="https://baidu.comt/" target="_blank" title="baidu"> <span class="badge-subject">Modified</span><span class="badge-value bg-red">baidu</span> </a> </div> ``` 4.添加完成后,需要去`handsome/component/footer.php`删除原有底部代码,需要删除的代码如下: ``` <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php Content::outputCommentJS($this, $this->security); ?> </div><!-- /content --> <footer id="footer" class="app-footer" role="footer"> <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>&nbsp;|&nbsp;Theme by <a target="blank" href="https://baidu.com">baidu</a> 删除本行--> </span> <span class="text-ellipsis"> <!-- &copy;&nbsp;<?php echo date("Y");?> Copyright&nbsp; 删除本行--> <?php $this->options->BottomleftInfo(); ?></span> </div> ```