ueditor如何去掉末尾的p标签_【其他】去掉CodingPages之Hosted by Coding Pages,Hexo Next

82b48a8454102c50a008e26e2cea8dea.png

首先必须把Coding Pages升级为银牌会员(免费),其实就是补全个人资料罢了。

然后在Page服务中才会出现Hosted by Coding Pages设置项,如下图。

bba9c4ce9643dad1331c199bb4234b00.png

有两种方式来去掉欢迎页,一种是文字,一种是图片,我一看图片是300*300,感觉有点大,并且是方形的,不知道放哪比较好,最后还是选择了文字,就是下边这一行代码。

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

结合Hexo的Next主题,我心中理想的效果是这样,与原有的3块配合,上边两块,下边两块:

5ac0a71639ed44b05af553456995d9ea.png

但是,如果用官方建议的p标签,效果立马就丑哭了。

9c9d5c368d178016235177c1c94e4e14.png

p标签带的行间距(不知道叫法对不对)太暴力了,空了一行,好丑。果断放弃p标签,改成span标签,“强力驱动”和“主题”两个字之间的竖线也挺好看的,copy一下,最后效果就是这样,自我感觉还好,就是不知道Coding官方能不能审核通过,希望我这么优美的布局能打动他们的审核。

5ac0a71639ed44b05af553456995d9ea.png

最后把修改的footer代码贴出来,其实我只加了3行,另外,这个footer文件的位置在:

你的Hexo文件夹themesnextlayout _partialsfooter.swig

">  {% set current = date(Date.now(), "YYYY") %}
  © {% if theme.since and theme.since != current %} {{ theme.since }} - {% endif %}
  <span itemprop="copyrightYear">{{ current }}</span>
  <span class="with-love">
    <i class="fa fa-{{ theme.authoricon }}"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">{{ config.author }}</span>
  <!--以下3行为一条竖线和Coding Page-->
  <div class="powered-by">  
  </div>
  <span>Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a></span>
</div>

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

<div class="theme-info">
  {{ __('footer.theme') }} -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.{{ theme.scheme }}
  </a>
</div>
{% endif %}

补充:
2017/08/14:一个工作日过去了,我来到Coding Pages设置页,看到审核通过了,还挺快的,好开心。

c75a72418a7460c53f991113efec44e1.png
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值