Github - https://github.com/anchan828/hexo-theme-unity

A brand new default theme for Hexo.

Installation

Install

1
$ git clone https://github.com/anchan828/hexo-theme-unity.git themes/unity

Unity requires Hexo 2.4 and above.

Enable

Modify theme setting in _config.yml to unity.

Update

1
2
cd themes/unity
git pull

Configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Header
menu:
Archives: /archives
sub_menu:
archives:
Test1: /archives/test1
Test2: /archives/test2
Test3: /archives/test3
rss: /atom.xml
# Content
excerpt_link: Read More
fancybox: true
# Sidebar
sidebar: right
widgets:
- category
- tag
- tagcloud
- archive
- recent_posts
- twitter_widget
# Miscellaneous
google_analytics: "UA-54389737-1"
favicon: /favicon.png
twitter:
username: kyusyukeigo
widget_id: "479529444873220097"
google_plus:
fb_admins:
fb_app_id:
  • menu - Navigation menu
  • rss - RSS link
  • excerpt_link - “Read More” link at the bottom of excerpted articles. false to hide the link.
  • fancybox - Enable Fancybox
  • sidebar - Sidebar style. You can choose left, right, bottom or false.
  • widgets - Widgets displaying in sidebar
  • google_analytics - Google Analytics ID
  • favicon - Favicon path
  • twitter - Twiiter ID
  • google_plus - Google+ ID

Features

Fancybox

Landscape uses Fancybox to showcase your photos. You can use Markdown syntax or fancybox tag plugin to add your photos.

1
2
3
![img caption](img_url)
{% fancybox img_url [img_thumbnail] [img_caption] %}

You can put your sidebar in left side, right side or bottom of your site by editing sidebar setting.

Landscape provides 5 built-in widgets:

  • category
  • tag
  • tagcloud
  • archives
  • recent_posts

All of them are enabled by default. You can edit them in widget setting.

Development

Requirements

Grunt tasks