Skip to content

hexojs/hexo-theme-light

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Light

A simple theme for Hexo.

Install

Execute the following command and modify theme in _config.yml to light.

git clone --depth 1 https://github.com/hexojs/hexo-theme-light themes/light
_config.yml
- theme: some-theme
+ theme: light

Update

Execute the following command to update Light.

cd themes/light
git pull

Config

Default config:

menu:
  Home: /
  Archives: /archives

widgets:
- search
- category
- tag
- twitter

excerpt_link: Read More

twitter:
  username:
  show_replies: false
  tweet_count: 5

addthis:
  enable: true
  pubid:
  facebook: true
  twitter: true
  google: true
  pinterest: true

fancybox: true

google_analytics:
rss:
  • menu - Main navigation menu
  • widget - Widgets displaying in sidebar
  • excerpt_link - "Read More" link text at the bottom of excerpted articles
  • twitter - Twitter widget config
    • username - Twitter username
    • show_replies - Enable displaying replies
    • tweet_count - Tweets display in widget
  • addthis - Share buttons at the bottom of articles (Powered by AddThis)
    • enable - Enable share buttons
    • pubid - Profile ID of AddThis
    • facebook - Enable Facebook button
    • twitter - Enable Twitter button
    • google - Enable Google+ button
    • pinterest - Enable Pinterest button
  • fancybox - Enable Fancybox
  • google_analytics - Google Analytics ID
  • rss - RSS subscription link (change if using Feedburner)

Features

Gallery Post

Gallery Post

---
layout: photo
title: Gallery Post
photos:
- https://i.postimg.cc/c49xRqRP/1.jpg
- https://i.postimg.cc/288jLjZ4/2.jpg
- https://i.postimg.cc/T2cYP5pd/3.jpg
---

Link Post

Link Post

---
layout: link
title: Link Post
link: http://www.google.com/
---

Tweet Widget

Tweet Widget

Fancybox

Fancybox