hexo+github搭建个人博客

2018-10-14  本文已影响0人  IARNO

前言

Hexo-NexT配置超炫网页效果已经非常全面,本文主要是在此基础上稍做修改

添加底部动态桃心

footer:
  icon:
    name: user
    animated: true(设置为true)
    color: "#ff0000" (设置为#ff0000
foot-heart.png

修改背景颜色

// Background color for <body>
$body-bg-color  = #f5f7f9
bg-color.png

引入Valine评论

注册Leancloud

Valine-2.png Valine-3.png Valine-4.png Valine5.png
  valine:
  enable: true
  appid:  your app id
  appkey: your app key
  notify: false # mail notifier , https://github.com/xCss/Valine/wiki
  verify: false # Verification code
  placeholder: ヾノ≧∀≦)o来啊,快活啊! 
  guest_info: nick,mail,link
  pageSize: 10
Valine-6.png

修改主题宽度

source/css/_schemes/Picses/_layout.styl文件末尾添加如下代码,修改header、.container .main-innerwidth属性即可:

// 以下为新增代码!!
header{ width: 90% !important; }
header.post-header {
  width: auto !important;
}
.container .main-inner { width: 90%; }
.content-wrap { width: calc(100% - 260px); }

.header {
  +tablet() {
    width: auto !important;
  }
  +mobile() {
    width: auto !important;
  }
}

.container .main-inner {
  +tablet() {
    width: auto !important;
  }
  +mobile() {
    width: auto !important;
  }
}

.content-wrap {
  +tablet() {
    width: 100% !important;
  }
  +mobile() {
    width: 100% !important;
  }
}

个人相关网址

上一篇下一篇

猜你喜欢

热点阅读