hexo next主题去掉码市的Coding Pages等待页

简介

本文介绍去除码市的Coding Pages的等待跳转页的方法,采用hexo的next主题5.1.2版本.

1.升级银牌会员

完善信息就ok,这一步是必须的。

2.修改footer.swig

找到主题下的这个文件,找到这一行:

<div class="theme-info">

原来这里面放的是主题 — NexT.Pisces v5.1.2,如下图所示:

其实这个没什么卵用,将这个div的东西都删掉,然后添加一句:

 <span>Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pagesa>span>

最后完整的尾部信息是:

{% if theme.copyright %}
  <div class="powered-by">{#
  #}{{ __('footer.powered', '<a class="theme-link" href="https://hexo.io">Hexo</a>') }}{#
#}div>

  <span class="post-meta-divider">|span>

  <div class="theme-info">
  <span>Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pagesa>span>
  div>
{% endif %}

最终的效果:

既保证了原来的结构也达到了效果。之前曾尝试过在copyright也就是博主名后面加(参考链接1的方案)弄两个竖线,但是又对不齐无奈太丑了所以放弃.

参考

  1. http://blog.csdn.net/yingpaixiaochuan/article/details/77113397
  2. http://zhanghao.studio/%E6%8F%90%E5%8D%87%E5%8D%9A%E5%AE%A2%E7%9A%84%E8%AE%BF%E9%97%AE%E9%80%9F%E5%BA%A6.html

你可能感兴趣的:(综合)