Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE(Theme): Inited a theme "cactus-light"
- Loading branch information
Showing
122 changed files
with
9,658 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ db.json | |
node_modules/ | ||
public/ | ||
.deploy*/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
zh-hans: | ||
name: 简体中文 | ||
disqus_lang: zh | ||
en: English | ||
# zh-tw: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
title: About YAH | ||
--- | ||
permalink: test | ||
tags: | ||
- 一 | ||
- 二 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: About YAH | ||
permalink: test | ||
tags: | ||
- One | ||
- Two | ||
--- | ||
|
||
asdfasdfasdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: 关于 | ||
--- | ||
|
||
123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: About | ||
--- | ||
|
||
456 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Pieter Robberechts | ||
Copyright (c) 2017 Gabriela Thumé | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
# Cactus Light | ||
|
||
A responsive, light and simple [Hexo](http://hexo.io) theme for a personal website. Based on the original [Cactus Dark](https://github.com/probberechts/cactus-dark) theme by [Pieter Robberechts](https://github.com/probberechts). | ||
|
||
:cactus: [Demo](http://gabithu.me) | ||
|
||
![cactus-light](https://cloud.githubusercontent.com/assets/2175271/19885143/62e9269c-a01d-11e6-8e26-e36a36201d88.png) | ||
|
||
## Summary | ||
|
||
- [General](#general) | ||
- [Features](#features) | ||
- [Install](#install) | ||
- [Configuration](#configuration) | ||
- [License](#license) | ||
|
||
## General | ||
|
||
- **Version** : 2.0 | ||
- **Compatibility** : Hexo 3 or later | ||
|
||
## Features | ||
|
||
- Fully responsive | ||
- Disqus | ||
- Googe analytics | ||
- Font Awesome icons | ||
- Pick your own code highlighting scheme | ||
- Configurable navigation menu | ||
- Projects list | ||
- Simplicity | ||
|
||
## Install | ||
1. In the `root` directory: | ||
|
||
```git | ||
$ git clone https://github.com/gabithume/cactus-light.git themes/cactus-light | ||
$ npm install hexo-pagination --save | ||
``` | ||
|
||
2. Change the `theme` property in the `config.yml` file. | ||
|
||
```yml | ||
# theme: landscape | ||
theme: cactus-light | ||
``` | ||
|
||
3. Run: `hexo generate` and `hexo server` | ||
|
||
## Configuration | ||
|
||
### Navigation | ||
|
||
Setup the navigation menu in the theme's `_config.yml`: | ||
|
||
``` | ||
nav: | ||
Home: / | ||
About: /about/ | ||
Writing: /archives/ | ||
Projects: http://github.com/gabithume | ||
LINK_NAME: URL | ||
``` | ||
|
||
### Blog posts list on home page | ||
|
||
You have two options for the list of blog posts on the home page: | ||
|
||
- Show only the 5 most recent posts (default) | ||
|
||
``` | ||
customize: | ||
show_all_posts: false | ||
post_count: 5 | ||
``` | ||
|
||
- Show all posts | ||
|
||
``` | ||
customize: | ||
show_all_posts: true | ||
``` | ||
|
||
### Projects list | ||
|
||
Create a projects file `source/_data/projects.json`. | ||
|
||
```json | ||
[ | ||
{ | ||
"name":"Hexo", | ||
"url":"https://hexo.io/", | ||
"desc":"A fast, simple & powerful blog framework" | ||
}, | ||
{ | ||
"name":"Font Awesome", | ||
"url":"http://fontawesome.io/", | ||
"desc":"The iconic font and CSS toolkit" | ||
} | ||
] | ||
``` | ||
|
||
### Social media links | ||
|
||
Cactus Light can automatically add links to your social media accounts. Therefore, update the theme's `_config.yml`: | ||
|
||
``` | ||
customize: | ||
social_links: | ||
github: your-github-url | ||
twitter: your-twitter-url | ||
NAME: your-NAME-url | ||
``` | ||
|
||
where `NAME` is the name of a [Font Awesome icon](http://fontawesome.io/icons/#brand). | ||
|
||
### RSS | ||
|
||
Set the `rss` field in the theme's `_config.yml` to one of the following values: | ||
|
||
1. `rss: false` will totally disable rss (default). | ||
2. `rss: atom.xml` sets a specific feed link. | ||
3. `rss:`leave empty to use the [hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed) plugin. | ||
|
||
### Analytics | ||
|
||
Add you Google Analytics `tracking_id` to the theme's `_config.yml`. | ||
|
||
``` | ||
plugins: | ||
gooogle_analytics: 'UA-49627206-1' # Format: UA-xxxxxx-xx | ||
``` | ||
|
||
### Comments | ||
|
||
First, create a site on Disqus: [https://disqus.com/admin/create/](http://disqus.com/admin/create/). | ||
|
||
Next, update the theme's `_config.yml` file: | ||
|
||
``` | ||
plugins: | ||
disqus_shortname: SITENAME | ||
``` | ||
|
||
where `SITENAME` is the name you gave your site on Disqus. | ||
|
||
### Code Highlighting | ||
|
||
Pick one of [the available colorschemes](https://github.com/gabithume/cactus-light/tree/master/source/css/_highlight) and add it to the theme's `_config.yml`: | ||
|
||
``` | ||
customize: | ||
highlight: COLORSCHEME_NAME | ||
``` | ||
|
||
## License | ||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
nav: | ||
Home: / | ||
Writing: /blog/ | ||
About: /about/ | ||
|
||
projects_url: | ||
|
||
customize: | ||
gravatar: | ||
email: | ||
logo: | ||
enabled: true | ||
width: 50 | ||
height: 50 | ||
url: /images/logo-circle.png | ||
gravatar: false | ||
favicon: | ||
# eg. generate with http://realfavicongenerator.net/ | ||
desktop: | ||
url: /images/favicon.ico | ||
gravatar: false | ||
android: | ||
url: /images/favicon-192x192.png | ||
gravator: false | ||
apple: | ||
url: /images/apple-touch-icon.png | ||
gravator: false | ||
social_links: | ||
github: / | ||
twitter: / | ||
facebook: / | ||
linkedin: / | ||
show_all_posts: false | ||
post_count: 5 | ||
highlight: monokai | ||
|
||
# Rss | ||
rss: '' | ||
|
||
# Plugins | ||
plugins: | ||
disqus_shortname: # Disqus Comments Shortname | ||
google_analytics: UA-76776888-2 # enter the tracking ID for your Google Analytics | ||
|
||
# Miscellaneous | ||
miscellaneous: | ||
open_graph: # see http://ogp.me | ||
fb_app_id: | ||
fb_admins: | ||
twitter_id: | ||
google_plus: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Home: Home | ||
About: About | ||
Writing: Writing | ||
Projects: Projects | ||
Search: Search | ||
Previous post: Previous post | ||
Next post: Next post | ||
Back to top: Back to top | ||
Share post: Share post | ||
TOC: TOC | ||
Share: Share | ||
Top: Top | ||
Menu: Menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Home: 首页 | ||
About: 关于 | ||
Writing: 写作 | ||
Projects: 项目 | ||
Search: 搜索 | ||
Previous post: 上一篇 | ||
Next post: 下一篇 | ||
Back to top: 回到顶部 | ||
Share post: 分享文章 | ||
TOC: 目录 | ||
Share: 分享 | ||
Top: 回到顶部 | ||
Menu: 菜单 |
Oops, something went wrong.