Skip to content

A reponsive theme for hexo, inspired by Twenty Fifteen Wordpress theme.

License

Notifications You must be signed in to change notification settings

Troy-Yang/hexo-theme-twentyfifteen-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-theme-twentyfifteen-wordpress

Summary

This is a responsive hexo theme inspired by a very popular wordpress theme called twentyfifeen. Compared with the original theme, I did many enhancements to make it more lightweight and added more custom features like content UI changes, more supports for chinese.

Online Demo

image

Features

  • Responsive Design - From smartphone, tablet, laptop, to desktop computer.
  • Lightweight - Minimized the resources and layout.
  • multiple languages - english, 简体, 繁體
  • Highlight - code highlight.
  • Comments - Disqus, duoshuo, changyuan and so on.
  • Analytics - Google, Baidu Analytics.
  • Visit count - Leancloud visit counter.
  • Custom Single Page - Easy to add pages like "About".
  • Lazy-load image - a hexo-lazyload-image plugin created by me to support it.
  • Local search local search for title or keywords (please make sure hexo-search plugin installed)

Configuration (_config.yml)

# ===========================================
# Site Settings
# ===========================================
# Header
site_title: Troy's Blog
site_description: Focus on Web Development and live in ChengDu. Happy Coding, Happy Life!
menu:
  Home: /
  Archives: /archives
  AboutMe: /about
# display widgets
widgets:
- archives
- search
#- social_links
- recent_posts
- tagcloud

# widget behavior
archive_type: 'monthly'
show_count: true
# Content
excerpt_link: Read More
# favico 
favicon:

# ===========================================
# Miscellaneous Settings
# ===========================================
# Baidu Analytics
baidu_analytics: 
# Google Analytics
google_analytics: 
# Disqus
disqus:
  enable: false
  shortname: 
  count: true
# changyan
changyan:
  enable: false
  appid:
  appkey:
# duoshuo
duoshuo:
  enable: true
  shortname: 
# Visitors
leancloud_visitors:
  enable: true
  app_id: 
  app_key: 
donation:
  enable: true
  alipay: /images/alipay-qr.png
  wechat: /images/wechat-qr.png

# Search 
# Note: please install hexo-generator-search plugin and config the root _config.yml (not theme's _config.yml) as below value search.json(https://www.npmjs.com/package/hexo-generator-search):
#search:
#  path: search.json
#  field: post
infinite:
  enable: true
  title1: 
  title2: 

Github is used for programmer social, right? So, any advices would be welcome.

Enjoy it!