Skip to content

MrEasonYang/hexo-theme-even

 
 

Repository files navigation

Enhanced hexo-theme-even

Forked from the origin repo, try to make it much better. And it's all thanks to the theme founder Yuexun Jiang's awesome job.

中文说明

Forked repo feature

  • Support Font Awesome icons.
  • Support site analytics provided by busuanzi.
  • Support popular posts.
  • Support the site word counting.
  • Add an option to stop pushing to Baidu.
  • Support custom post footer which is able to contain wechat official account etc.
  • Emphasized index post title.
  • Place copyright information inner the post area to anti web crawler.
  • Request LeanCloud only one time when loading the counter.
  • Support Twitter cards.
  • Support the Open Graph Protocal.
  • Support Sogou/Shenma site verifications.
  • Able to add a sitemap link in the footer.
  • Use h2 tag instead of h1 on index to optimize SEO.
  • Fixed Leancloud counter, yes, it's working again.

Usage

Original features

All original features are supported, see document for more information.

Enhanced features

Use Font Awesome icons

The original theme uses custom iconfont as the default icon set which relies on maintainer's supports.

The forked repo included the Font Awesome so that you can add any icons available on Font Awesome's site.

For example, you can append this to the theme config to add a Telegram icon to the footer.

telegram: <Telegram chat url>

Add busuanzi site analytics

Add this to the theme config to enable:

busuanzi: true

Add popular posts

  1. Install the dependency: npm install hexo-related-popular-posts -S
  2. Check the hexo-related-popular-posts docs for more usage description.
  3. Add this to the theme config to enable:
popular_posts:
  enable: true
  maxCount: 5
  PPMixingRate: 0.5

Custom footer with Wechat Official Account

Add this to the theme config to enable:

wxOfficialAccount:
  enable: true
  url: <The QRCode image url>

Add Twitter cards

  1. Read Twitter cards docs

  2. Add this to the theme config to enable:

twitter_card:
  style: <See Twitter card docs>
  creator: <Twitter username>

Add common Open Gragh information

  1. Read Open Graph docs

  2. Add this to the theme config to enable:

open_graph:
  type: <See https://ogp.me/#types>

Word count

  1. Install the dependency: npm install hexo-wordcount -S
  2. Add this to the hexo root config to enable:
word_count: true

Sitemap link in the footer

Add this to the theme config to enable:

footer_sitemap: true

Sogou/Shenma site verifications

Add this to the theme config to setup:

# Sogou verification
sogou_verification:

# Shenma verification
shenma_verification: 

Stop pushing to Baidu

Forked theme will set Baidu push disabled as default, add this to the theme config to enable it again:

baidu_push: true

Use counter based on Leancloud

The original implementation uses the old leancloud cdn with deprecated api domain which is 404 currently. This theme upgraded the cdn address so that the counter can work again. However, Leancloud required CN apps to use specified domain, so you have to set up the server url manually to make it work.

# LeanCloud
leancloud:
  app_id: <Your Leancloud appId>
  app_key: <Your Leancloud appKey>
  server_url: <Your Leancloud domain>

Original README

Screenshots

even-screenshots

🔯 Live Preview

Installation

$ npm install hexo-renderer-scss hexo-renderer-swig --save
$ # For original theme: git clone https://github.com/ahonn/hexo-theme-even themes/even
$ git clone https://github.com/MrEasonYang/hexo-theme-even.git themes/even
$ cp themes/even/_config.yml.example themes/even/_config.yml

Modify yoursite/_config.yml:

# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: even

For more options, check out the document

Update

You can update to latest master branch by the following command:

$ cd themes/even
$ git pull

Contributing

Contribution is welcome, feel free to open an issue or pull request.

Contributors

This project exists thanks to all the people who contribute.

Packages

No packages published

Languages

  • JavaScript 74.3%
  • SCSS 23.9%
  • CSS 1.8%