A new Ghost’s Casper theme port to Hexo.
DEMO here
My Blog zhih.me
This is a simple and beautiful hexo theme.
When I was searching beautiful hexo themes
, I saw the old version of Casper port to Hexo, but the latest not. So I decided that I would port it.
Table of Contents generated with DocToc
Features
- Posts cover image
- Posts feature image
- Customized navigation menu
- Customized favicon, logo, header image, author image
- Social links ( now support FB, TT、github、bilibili、YouTube、weibo)
- 3 widgets ( I think no need more )
- Tag, Category, TOC
- Pagination
- Syntax Highlighting
- Responsive Web Design
- Lazy load
- Local search
- Valine comment
- Chrome Nav Color
- Baidu Push Google Analytics
- Service Worker
Installation
Install
1 | git clone https://github.com/xzhih/hexo-theme-casper.git themes/hexo-casper |
Enable
Modify theme
in _config.yml
to hexo-casper
.
Update
You’d better backup old file first.
1 | cd themes/casper |
Front-matter
Add to scaffolds/post.md
,
1 | cover_img: # show in home page, the post card header |
Valine comment
PS: Add about page
1 | hexo new page about |
Configuration
Edit themes/hexo-casper/_config.yml
and set up what you want to show
1 | # Config |
Local Search
https://github.com/wzpan/hexo-generator-search
https://github.com/SuperKieran/hexo-generator-search-zip