项目作者: lifei-2019

项目描述 :
一个简洁优雅的hexo主题 A simple and elegant theme for hexo. https://lifei-2019.github.io/
高级语言: JavaScript
项目地址: git://github.com/lifei-2019/hexo-theme-yilia-better.git
创建时间: 2019-10-11T02:51:47Z
项目社区:https://github.com/lifei-2019/hexo-theme-yilia-better

开源协议:Apache License 2.0

下载


hexo-theme-yilia-better

  1. 此项目是根据[hexo-theme-yilia](https://github.com/litten/hexo-theme-yilia)主题做了一些优化和改动,写这个项目的初衷就是深入学习`Hexo`。使用`yilia`主题可以快速迁移到`yilia-better`

立即体验

欢迎使用和Star支持,如使用过程中碰到问题,可以提出Issue,我会尽力完善

同时也欢迎相同爱好者加入一起维护此项目

介绍

yilia-better 是为 hexo 2.4+制作的主题。
崇尚简约优雅,以及极致的性能。 你可以点击 我的博客 查看效果。

如果想体验手机浏览效果,可以扫一下二维码:


鼓励

  1. **如果觉得本主题还不错,您的支持和鼓励才是后续更新最大的动力,== 欢迎 [Star](https://github.com/lifei-2019/hexo-theme-yilia-better/stargazers) ==**

使用

1、安装

  1. cd ./themes/
  2. git clone --depth=1 https://github.com/lifei-2019/hexo-theme-yilia-better.git ./yilia-better

2、配置

修改hexo根目录下的 _config.yml ➡️ theme: yilia-better

3、更新

  1. cd themes/yilia-better
  2. git pull

四、配置

  1. 主题配置文件在主目录下的`_config.yml`,请根据自己需要修改使用。

完整配置Demo例子,可以参考yilia-better博客备份

  1. # Header-菜单
  2. menu:
  3. 主页: /
  4. 生活: /tags/生活
  5. # subNav-子导航
  6. subNav:
  7. github: "https://github.com/lifei-2019"
  8. #gitee: "#" # 码云
  9. #jianshu: "#" #简书
  10. #csdn: "#"
  11. #rss: "#"
  12. #zhihu: "#"
  13. #qq: "#"
  14. #weixin: "#"
  15. #weibo: "#"
  16. #douban: "#"
  17. #segmentfault: "#"
  18. #bilibili: "#"
  19. #acfun: "#"
  20. #mail: "mailto:940915122@qq.com"
  21. #facebook: "#"
  22. #google: "#"
  23. #twitter: "#"
  24. #linkedin: "#"
  25. # 悬停预览图片效果
  26. hover_effect:
  27. ## `global` 0: Set separately, 1: Enable global 2: Close global
  28. ## `global` 0: 分开设置, 1: 全局启用, 2: 全局关闭
  29. global: 2
  30. # SubNav-导航
  31. subNav: true
  32. # RSS订阅(关于如何配置启用:https://www.jianshu.com/p/2aaac7a19736)
  33. rss: /atom.xml
  34. # 是否需要修改 root 路径
  35. # 如果您的网站存放在子目录中,例如 http://yoursite.com/blog,
  36. # 请将您的 url 设为 http://yoursite.com/blog 并把 / 设为 /blog/。
  37. root: /
  38. # Content
  39. # 文章太长,截断按钮文字(在需要截断的行增加此标记:<!--more-->)
  40. excerpt_link: more
  41. # 文章卡片右下角常驻链接,不需要请设置为false
  42. show_all_link: '展开全文'
  43. # 数学公式
  44. mathjax: false
  45. # Open link in a new tab | 是否在新窗口打开链接
  46. open_in_new:
  47. article: true # 文章链接
  48. menu: true # 导航菜单
  49. subNav: true # 子菜单
  50. # 打赏
  51. # 打赏type设定:0-关闭打赏; 1-文章对应的md文件里有reward:true属性,才有打赏; 2-所有文章均有打赏
  52. reward_type: 2
  53. # 打赏wording
  54. reward_wording: '谢谢你的关注'
  55. # 支付宝二维码图片地址,跟你设置头像的方式一样。比如:/assets/img/alipay.jpg
  56. alipay: /img/alipay.jpg
  57. # 微信二维码图片地址
  58. weixin: /img/weixin.png
  59. # 目录
  60. # 目录设定:0-不显示目录; 1-文章对应的md文件里有toc:true属性,才有目录; 2-所有文章均显示目录
  61. toc: 1
  62. # 根据自己的习惯来设置,如果你的目录标题习惯有标号,置为true即可隐藏hexo重复的序号;否则置为false
  63. toc_hide_index: true
  64. # 目录为空时的提示
  65. toc_empty_wording: '目录,不存在的…'
  66. # 是否有快速回到顶部的按钮
  67. top: true
  68. # Miscellaneous
  69. # 百度统计
  70. baidu_analytics: ''
  71. google_analytics: ''
  72. # 网站图标
  73. favicon: /favicon.ico
  74. # 你的头像url
  75. avatar: /img/head.jpg
  76. # 是否开启分享
  77. share_jia: true
  78. # 评论:1、畅言;2、Disqus;3、Gitment;4、Giteement
  79. # 不需要使用某项,直接设置值为false,或注释掉
  80. # 1、畅言
  81. changyan_appid: false
  82. changyan_conf: false
  83. # 2、Disqus 在hexo根目录的config里也有disqus_shortname字段,优先使用yilia-plus的
  84. disqus: false
  85. # 3、Gitment----基于GitHub的评论系统(关闭请设置gitment_owner为false)
  86. # 关于如何集成:https://www.jianshu.com/p/ac7658cc912f
  87. gitment_owner: false #你的 GitHub ID
  88. # 是否使用官方js(false可以提升访问速度,本地修改过一部分的js,官方js可能会出现服务器不稳定,不太建议使用)
  89. gitment_remote: false
  90. gitment_repo: '' #存储评论的 repo name(需要在Github创建)
  91. gitment_oauth:
  92. client_id: '' #client ID
  93. client_secret: '' #client secret
  94. # 4、Giteement----【国内用户建议使用这个,相对比较快】
  95. # 关于如何集成:https://www.jianshu.com/p/f5c4633524c7
  96. # 基于码云的评论系统(https://gitee.com/zhousiwei/giteement)
  97. giteement:
  98. enable: false # 是否启用码云评论系统
  99. # 是否使用官方js(false可以提升访问速度)
  100. remote: false
  101. redirect_uri: '' # 应用回调地址(请和配置的第三方应用保持一致)
  102. # 不能更改(网上开源项目`https://github.com/Rob--W/cors-anywhere`作者提供的专门用来跨域服务器的配置)
  103. oauth_uri: https://cors-anywhere.herokuapp.com/https://gitee.com/oauth/token
  104. giteeID: '' # 你的码云账号英文名
  105. # 存储评论的 repo name(需要在码云仓库创建公开仓库)
  106. repo: ''
  107. gitment_oauth:
  108. client_id: '' #client ID
  109. client_secret: '' #client secret
  110. # 访问量统计功能(不蒜子)
  111. busuanzi:
  112. enable: false
  113. site_visit: false # 站点访问量显示
  114. article_visit: true # 文章访问量显示
  115. # 网易云音乐插件
  116. music:
  117. enable: false
  118. # 播放器尺寸类型(1:长尺寸、2:短尺寸)
  119. type: 2
  120. #id: 1297532315 # 网易云分享的音乐ID(更换音乐请更改此配置项)
  121. autoPlay: true # 是否开启自动播放
  122. # 提示文本(关闭请设置为false)
  123. # 页面点击小红心
  124. clickLove:
  125. # (关闭请设置为false)
  126. enable: true
  127. # GitHub Ribbons(https://github.blog/2008-12-19-github-ribbons/)
  128. github:
  129. # (关闭请设置为false)
  130. url: https://github.com/lifei-2019/.github.io
  131. # 页脚 Litten(此配置项已弃用)
  132. # 帮助我们让更多人可以更方便使用Hexo,请尽量不要修改此主题配置
  133. pageFooter:
  134. litten: GitHub:<a href="https://github.com/hexo-theme-yilia-better" target="_blank">hexo-theme-yilia-better</a>
  135. # 版权声明
  136. # 版权声明type设定:0-关闭版权声明; 1-文章对应的md文件里有copyright: true属性,才有版权声明; 2-所有文章均有版权声明
  137. copyright_type: 2
  138. # 网站成立年份(默认为 2018,若填入年份小于当前年份,则显示为 2018-2019 类似的格式)
  139. since: 2019
  140. # Progress Bar | 页面加载进度条
  141. # Demo: http://github.hubspot.com/pace/docs/welcome/
  142. # type: barber-shop|big-counter|bounce|center-atom|center-circle|
  143. # center-radar|center-simple|corner-indicator|flash|flat-top|
  144. # loading-bar|mac-osx|minimal
  145. # color: black|blue|green|orange|pink|purple|red|silver|white|yellow|
  146. progressBar:
  147. enable: false
  148. type: 'minimal' # Keep Quotes | 保留引号避免出错(某些type会导致样式重叠排版错误)
  149. color: blue
  150. # Apple Touch icon 苹果图标(关闭请设置为false)
  151. apple_touch_icon: '/apple-touch-icon-180x180.png'
  152. # https://github.com/willin/hexo-wordcount
  153. # 是否开启字数统计(关闭请设置enable为false)
  154. # 也可以单独在md文件里Front-matter设置`no_word_count: true`属性,来自定义关闭字数统计
  155. word_count:
  156. enable: false
  157. # 只在文章详情显示(不在首页显示)
  158. only_article_visit: true
  159. # 文字输入特效
  160. # https://github.com/disjukr/activate-power-mode
  161. activate_power_mode:
  162. enable: true
  163. # 使输入模式丰富多彩
  164. colorful: true
  165. # 是否开启摇动
  166. shake: false
  167. # 看板娘动态模型插件
  168. ## https://github.com/JoeyBling/live2d-widget.js
  169. live2d:
  170. # (关闭请设置为false)
  171. enable: false
  172. # 模型名称(取值请参考:https://github.com/JoeyBling/hexo-theme-yilia-plus/wiki/live2d%E6%A8%A1%E5%9E%8B%E5%8C%85%E5%B1%95%E7%A4%BA)
  173. model: shizuku
  174. display:
  175. position: right # 显示位置:left/right(default: 'right')
  176. width: 200 # 模型的长度(default: 150)
  177. height: 400 # 模型的高度(default: 300)
  178. hOffset: 80 # 水平偏移(default: 0)
  179. vOffset: -30 # 垂直偏移(default: -20)
  180. mobile:
  181. show: false # 是否在移动设备上显示(default: true)
  182. scale: 0.6 # 移动设备上的缩放(default: 0.5)
  183. react:
  184. opacity: 0.7 # 模型透明度(default: 0.7)
  185. # 样式定制 - 一般不需要修改,除非有很强的定制欲望…
  186. style:
  187. # 头像上面的背景颜色
  188. header: '#4d4d4d'
  189. # 右滑板块背景
  190. slider: 'linear-gradient(200deg,#a0cfe4,#e8c37e)'
  191. # slider的设置
  192. slider:
  193. # 是否默认展开tags板块
  194. showTags: false
  195. # 智能菜单
  196. # 如不需要,将该对应项置为false
  197. # 比如
  198. #smart_menu:
  199. # friends: false
  200. smart_menu:
  201. innerArchive: '所有文章'
  202. friends: '友链'
  203. aboutme: '关于我'
  204. # 友情链接
  205. friends:
  206. #gitHub:
  207. #url: https://github.com/lifei-2019
  208. #码云:
  209. #url: https://gitee.com/lf1997
  210. # 关于我
  211. aboutme: <br>很惭愧<br><br>只做了一点微小的工作<br>谢谢大家

捐赠

  1. **如果感觉对您有帮助,请作者喝杯咖啡吧,请注明您的名字或者昵称,方便作者感谢o(* ̄︶ ̄*)o**
微信 支付宝

Hexo博客优化