Skip to content

callmesoul/hexo-theme-soul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-theme-soul

| 原创hexo主题,喜欢的给个start呗!

主题亮点

  • 原创,独一无二
  • 全站伪SPA(单页面)无刷新页面加载,用户体验还是感觉SPA
  • 音乐播放器,为了这个才写个伪SPA的,好跳来跳去去中断音乐播放,影响用户体验,Nices!
  • 使用prettify代码高亮,所以要把自定的hightlight高亮关了哦
  • 集成gitalk 评论插件使用github issue作为文档评论功能,集体使用查看gitalk
  • 集成不蒜子极简网站访问统计
  • 集成百度统计
  • 谷歌单元广告

ToDo

  • 完善其他小功能细节
  • 菜单添加目录和标签
  • 推荐文章来自友链文章匹配(项目还在写)
  • 添加相册模板(图片为,文字为辅)

安装

  1. clone本项目到hexo项目的themes目录下
  2. 更改项目的根目录配置文件_config.yml,修改配置theme: soul 即可

预览

首页 archive post

使用说明

代码高亮

项目根目录配置_config.yml把自带hightlight高亮关了

# 自带高亮  关闭
highlight:
  enable: false
  line_number: false
  auto_detect: false
  tab_replace:

gitalk

gitlk 使用 文章的uuid作为文章的唯一标识 建议使用hexo-uuid 为你的文章生成唯一不变的uuid

分页

首页分页设置

项目根目录配置_config.yml配置

index_generator:
  path: ''
  per_page: 12
  order_by: -date

归档分页

归档页没有做分页,所以就要把所有文章都列出来 项目根目录配置_config.yml配置

archive_generator:
  per_page: 99
  yearly: true
  monthly: true

其他使用请查看主题配置文件

title: "CallMeSoul" # 网站标题
subTitle: "Front-end developer" # 网站副标题
logo: "/images/logo.svg" # 网站logo
favicon: "/images/icon.png" # 网站favicon

# node_sass配置
node_sass: 
  outputStyle: nested
  precision: 5
  sourceComments: false


# 自定义菜单
# icon图标放在source/icon里面,名字跟 icon 字段
menu:
  - { name: 首页, description: Home Page, link: /, icon: home }
  - { name: 归档, description: Archive Page, link: /archives/, icon: archives }
  - { name: 关于我, description: About Me, link: /about/, icon: about }

# 音乐播放列表
musics:
  - { name: '说好不哭', singer: '周杰伦', url: 'https://www.w3school.com.cn/i/horse.ogg'}
  - { name: '爱在西元前', singer: '周杰伦', url: 'https://www.w3school.com.cn/i/horse.ogg'}
  - { name: '龙拳', singer: '周杰伦', url: 'https://www.w3school.com.cn/i/horse.ogg'}


# 网站统计
# 百度统计
baidu_statistics:
  enable: true # 是否开启
  sitecode: f4e4f3d9d25asddasdasddb4db6  ## 百度统计的网站code

# 社交
# icon图标放在source/icon里面,名字跟 key 值
# 建议3/4个
social:
  weibo: https://weibo.com/tellmesoul/home?wvr=5
  github: https://github.com/callmesoul
  rss: /atom.xml

# Custom footer
## 邮箱
mail: [email protected] 
copyright: 2019 CallMeSoul
# 备案号
beian: 粤ICP备15053557号


# gitalk 
# 详细使用说明 https://github.com/gitalk/gitalk/blob/master/readme-cn.md
gitalk:
  enable: true # 是否开启
  clientID: 8581123123435f763a9a
  clientSecret: e9867135345123123131be7373a090d
  repo: myblog
  owner: callmesoul
  admin: callmesoul
  distractionFreeMode: false

  # 文章详情 右侧 推荐文章 下方 广告位
postMoreAdsence:
  enable: true # 是否开启
  google: # 谷歌单元广告 https://www.google.com/adsense
  client: ca-pub-xxx,
  slot: xxxxxxxxx

支持 🍎

原创的主题需要你的支持 你可以start一下或者关注下公众号,如果你想更有利的支持,请和我喝瓶快乐水呗

| callmesoul公众号 | 微信支付 | 支付宝 |