New casper theme ported to hexo
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 23 commits behind xzhih:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
languages
layout
source
README.md
_config.yml

README.md

hexo-theme-casper

A new Ghost's Casper theme port to Hexo.

DEMO here

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

hexo-theme-casper.jpg

Features

  • Posts cover image
  • Posts feature image
  • Customized navigation menu
  • Customized favicon, logo, header image, author image
  • Social links ( now support FB, TT )
  • 3 widgets ( I think no need more )
  • Tag, Category, TOC
  • Pagination
  • Syntax Highlighting ( use highlight.js github style )
  • Responsive Web Design

Installation

Install

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.

cd themes/casper 
git pull

Front-matter

Add to scaffolds/post.md,

cover_img:     # show in home page, the post card header
feature_img:   # show in post page, content header

Configuration

Edit themes/hexo-casper/_config.yml and set up what you want to show

# config
rss:            # link
favicon:        # link
blog_logo:      # link
header_image: //demo.ghost.io/content/images/2017/07/blog-cover.jpg 

# menu
menu:
  About: /about
  Archives: /archives
  # you can add here

# author
author_image:   # link

# Social Links
social:
  facebook: https://www.facebook.com
  twitter: https://www.twitter.com
  # You only can use that I have added, I will keep adding

# widget
widgets:
  recent_posts: true
  category: true
  tagcloud: true
  # This is a simple theme, I think 3 is enough.

# gallery
# https://github.com/sachinchoolur/lightgallery.js
lightgallery: true

Copyright & License