安装 hexo 主题 light

Light

一个适用于 Hexo 的简约主题。

安装

执行以下命令,并将 _config.yml 中的 theme 修改为 light

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

更新

执行以下命令来更新 Light 主题。

1
2
cd themes/light
git pull

配置

默认配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 - 主导航菜单
  • widget - 侧边栏显示的小部件
  • excerpt_link - 摘要文章底部的”阅读更多”链接文本
  • twitter - Twitter 小部件配置
    • username - Twitter 用户名
    • show_replies - 启用显示回复
    • tweet_count - 小部件中显示的推文数量
  • fancybox - 启用 Fancybox
  • google_analytics - Google Analytics ID
  • rss - RSS 订阅链接(如果使用 Feedburner 请修改)

特性

图库文章

Gallery Post

链接文章

Link Post

Twitter 小部件

Tweet Widget

Fancybox

Fancybox