Skip to content

hexojs/hexo-theme-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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
  • 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