一个清爽的 hexo theme,高度配置化,简单高效,项目地址在 这里,我的博客也在用本身的这个主题,嘻嘻,欢迎 star~
我的以前的 blog,在去年仍是前年的时候,从 wordpress
迁移到hexo
。(PS:wordpress 简直是太慢太慢了,静态页的博客我的以为就足够)期间,折腾过很多主题,用过next
、indigo
等,可是总以为样式不够美观,就参考了部分主题,本身搞一个,后来自用了一段时间,想分享出来,欢迎吐槽。git
截止到目前为止,主题内集成了下列这些功能,都是即插即用,能够根据本身的需求来。github
评论系统web
统计 & 分析npm
menu
metadata
定制$ cd hexo (hexo main directory) $ git clone https://github.com/8090lambert/hexo-easy-theme.git themes/easy
$ vi themes/easy/_config.yml
集成了 font-awesome
,在菜单能够选择 文本
和 Icon
:hexo
# Header Menu menu: Home: / Archives: /archives Email: mailto:<juzs215@gmail.com> # change github values to your own addresses Github: url: https://github.com/8090Lambert icon: github
# URL of the Home page image, For example: # index_cover: /img/default-banner.jpg # index_cover: http://8090lambert.cn/img/default-banner.jpg index_cover: /img/default-banner.jpg
默认 200 字app
# Use post content to trim portion text. auto_excerpt: enable: true length: 200 # trim length, default 200
依赖hexo-wordcount
,须要提早安装:
`
$ cd hexo_dict && npm install hexo-wordcount --save
`ide
# Post meta display settings post_meta: item_text: true created_at: true updated_at: true categories: true # Post wordcount display settings # Dependencies: https://github.com/willin/hexo-wordcount post_wordcount: item_text: true wordcount: true min2read: false totalcount: false separated_meta: true
选择一个要使用的平台,申请对应的 appid & appkey (不容许同时开启多个)wordpress
# Many Comment Drivers, you can choose one to open it. # Write your configure of which platform. # disqus disqus_shortname: false # uyan uyan_uid: false # Gitment,https://github.com/imsun/gitment gitment: enable: false owner: repo: client_id: client_secret: # Gitalk, gitalk: enable: false owner: repo: admin: client_id: client_secret: # Valine Comment system. https://valine.js.org valine: enable: false appId: # your leancloud appId appKey: # your leancloud appKey notify: false # Mail notify verify: false # Verify code avatar: mm # Gravatar style : mm/identicon/monsterid/wavatar/retro/hide placeholder: Just go go # Comment Box placeholder guest_info: nick,mail,link # Comment header info pageSize: 10 # comment list page size # Hyper Comments support. Write your id here, or false to disable. http://hypercomments.com hyper_id: false
# Footer setting. footer: # Specify the date when the site was setup. # If not defined, current year will be used. since: 2016 # Icon between year and copyright info. icon: heart # If not defined, will be used `author` from Hexo main config. copyright: 8090Lambert # Hexo link (Powered by Hexo). powered: false
# Show PV/UV of the website/page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi/ busuanzi_count: # count values only if the other configs are false enable: true
根据本身须要去开启,能够同时启用多个post
# Google Analytics Write your tracking id here, or false to disable.s google_analytics: google_site_verification: # CNZZ cnzz: false # BaiDu Analytics baidu_tongji: false # Sougou Verification. sogou_site_verification: false
Ok,Enjoy yourself 😀ui