Skip to content

Commit cec019f

Browse files
author
Paul de Rosanbo
committed
new hexo site
1 parent ab0490a commit cec019f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+5570
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
public/*
2+
node_modules

.npmignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
Thumbs.db
3+
db.json
4+
*.log
5+
node_modules/
6+
public/
7+
.deploy*/

_config.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Hexo Configuration
2+
## Docs: https://hexo.io/docs/configuration.html
3+
## Source: https://github.com/hexojs/hexo/
4+
5+
# Site
6+
title: Gadael
7+
subtitle: Time management made easy
8+
description:
9+
author: Paul de Rosanbo
10+
language:
11+
timezone:
12+
13+
# URL
14+
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
15+
url: http://gadael.com
16+
root: /
17+
permalink: :year/:month/:day/:title/
18+
permalink_defaults:
19+
20+
# Directory
21+
source_dir: source
22+
public_dir: public
23+
tag_dir: tags
24+
archive_dir: archives
25+
category_dir: categories
26+
code_dir: downloads/code
27+
i18n_dir: :lang
28+
skip_render:
29+
30+
# Writing
31+
new_post_name: :title.md # File name of new posts
32+
default_layout: post
33+
titlecase: false # Transform title into titlecase
34+
external_link: true # Open external links in new tab
35+
filename_case: 0
36+
render_drafts: false
37+
post_asset_folder: false
38+
relative_link: false
39+
future: true
40+
highlight:
41+
enable: true
42+
line_number: true
43+
auto_detect: false
44+
tab_replace:
45+
46+
# Category & Tag
47+
default_category: uncategorized
48+
category_map:
49+
tag_map:
50+
51+
# Date / Time format
52+
## Hexo uses Moment.js to parse and display date
53+
## You can customize the date format as defined in
54+
## http://momentjs.com/docs/#/displaying/format/
55+
date_format: YYYY-MM-DD
56+
time_format: HH:mm:ss
57+
58+
# Pagination
59+
## Set per_page to 0 to disable pagination
60+
per_page: 10
61+
pagination_dir: page
62+
63+
# Extensions
64+
## Plugins: https://hexo.io/plugins/
65+
## Themes: https://hexo.io/themes/
66+
theme: landscape
67+
68+
# Deployment
69+
## Docs: https://hexo.io/docs/deployment.html
70+
deploy:
71+
type:

db.json

+1
Large diffs are not rendered by default.

package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "hexo-site",
3+
"version": "0.0.0",
4+
"private": true,
5+
"hexo": {
6+
"version": "3.2.2"
7+
},
8+
"dependencies": {
9+
"hexo": "^3.2.0",
10+
"hexo-generator-archive": "^0.1.4",
11+
"hexo-generator-category": "^0.1.3",
12+
"hexo-generator-index": "^0.2.0",
13+
"hexo-generator-tag": "^0.2.0",
14+
"hexo-renderer-ejs": "^0.2.0",
15+
"hexo-renderer-stylus": "^0.3.1",
16+
"hexo-renderer-marked": "^0.2.10",
17+
"hexo-server": "^0.2.0"
18+
}
19+
}

scaffolds/draft.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
tags:
4+
---

scaffolds/page.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
---

scaffolds/post.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
tags:
5+
---

source/_posts/hello-world.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Hello World
3+
---
4+
Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).
5+
6+
## Quick Start
7+
8+
### Create a new post
9+
10+
``` bash
11+
$ hexo new "My New Post"
12+
```
13+
14+
More info: [Writing](https://hexo.io/docs/writing.html)
15+
16+
### Run server
17+
18+
``` bash
19+
$ hexo server
20+
```
21+
22+
More info: [Server](https://hexo.io/docs/server.html)
23+
24+
### Generate static files
25+
26+
``` bash
27+
$ hexo generate
28+
```
29+
30+
More info: [Generating](https://hexo.io/docs/generating.html)
31+
32+
### Deploy to remote sites
33+
34+
``` bash
35+
$ hexo deploy
36+
```
37+
38+
More info: [Deployment](https://hexo.io/docs/deployment.html)

themes/landscape/.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules
3+
tmp

themes/landscape/Gruntfile.js

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = function(grunt){
2+
grunt.initConfig({
3+
gitclone: {
4+
fontawesome: {
5+
options: {
6+
repository: 'https://github.com/FortAwesome/Font-Awesome.git',
7+
directory: 'tmp/fontawesome'
8+
},
9+
},
10+
fancybox: {
11+
options: {
12+
repository: 'https://github.com/fancyapps/fancyBox.git',
13+
directory: 'tmp/fancybox'
14+
}
15+
}
16+
},
17+
copy: {
18+
fontawesome: {
19+
expand: true,
20+
cwd: 'tmp/fontawesome/fonts/',
21+
src: ['**'],
22+
dest: 'source/css/fonts/'
23+
},
24+
fancybox: {
25+
expand: true,
26+
cwd: 'tmp/fancybox/source/',
27+
src: ['**'],
28+
dest: 'source/fancybox/'
29+
}
30+
},
31+
_clean: {
32+
tmp: ['tmp'],
33+
fontawesome: ['source/css/fonts'],
34+
fancybox: ['source/fancybox']
35+
}
36+
});
37+
38+
require('load-grunt-tasks')(grunt);
39+
40+
grunt.renameTask('clean', '_clean');
41+
42+
grunt.registerTask('fontawesome', ['gitclone:fontawesome', 'copy:fontawesome', '_clean:tmp']);
43+
grunt.registerTask('fancybox', ['gitclone:fancybox', 'copy:fancybox', '_clean:tmp']);
44+
grunt.registerTask('default', ['gitclone', 'copy', '_clean:tmp']);
45+
grunt.registerTask('clean', ['_clean']);
46+
};

themes/landscape/LICENSE

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2013 Tommy Chen
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.

themes/landscape/README.md

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Landscape
2+
3+
A brand new default theme for [Hexo].
4+
5+
- [Preview](http://hexo.io/hexo-theme-landscape/)
6+
7+
## Installation
8+
9+
### Install
10+
11+
``` bash
12+
$ git clone https://github.com/hexojs/hexo-theme-landscape.git themes/landscape
13+
```
14+
15+
**Landscape requires Hexo 2.4 and above.**
16+
17+
### Enable
18+
19+
Modify `theme` setting in `_config.yml` to `landscape`.
20+
21+
### Update
22+
23+
``` bash
24+
cd themes/landscape
25+
git pull
26+
```
27+
28+
## Configuration
29+
30+
``` yml
31+
# Header
32+
menu:
33+
Home: /
34+
Archives: /archives
35+
rss: /atom.xml
36+
37+
# Content
38+
excerpt_link: Read More
39+
fancybox: true
40+
41+
# Sidebar
42+
sidebar: right
43+
widgets:
44+
- category
45+
- tag
46+
- tagcloud
47+
- archives
48+
- recent_posts
49+
50+
# Miscellaneous
51+
google_analytics:
52+
favicon: /favicon.png
53+
twitter:
54+
google_plus:
55+
```
56+
57+
- **menu** - Navigation menu
58+
- **rss** - RSS link
59+
- **excerpt_link** - "Read More" link at the bottom of excerpted articles. `false` to hide the link.
60+
- **fancybox** - Enable [Fancybox]
61+
- **sidebar** - Sidebar style. You can choose `left`, `right`, `bottom` or `false`.
62+
- **widgets** - Widgets displaying in sidebar
63+
- **google_analytics** - Google Analytics ID
64+
- **favicon** - Favicon path
65+
- **twitter** - Twiiter ID
66+
- **google_plus** - Google+ ID
67+
68+
## Features
69+
70+
### Fancybox
71+
72+
Landscape uses [Fancybox] to showcase your photos. You can use Markdown syntax or fancybox tag plugin to add your photos.
73+
74+
```
75+
![img caption](img url)
76+
77+
{% fancybox img_url [img_thumbnail] [img_caption] %}
78+
```
79+
80+
### Sidebar
81+
82+
You can put your sidebar in left side, right side or bottom of your site by editing `sidebar` setting.
83+
84+
Landscape provides 5 built-in widgets:
85+
86+
- category
87+
- tag
88+
- tagcloud
89+
- archives
90+
- recent_posts
91+
92+
All of them are enabled by default. You can edit them in `widget` setting.
93+
94+
## Development
95+
96+
### Requirements
97+
98+
- [Grunt] 0.4+
99+
- Hexo 2.4+
100+
101+
### Grunt tasks
102+
103+
- **default** - Download [Fancybox] and [Font Awesome].
104+
- **fontawesome** - Only download [Font Awesome].
105+
- **fancybox** - Only download [Fancybox].
106+
- **clean** - Clean temporarily files and downloaded files.
107+
108+
[Hexo]: http://zespia.tw/hexo/
109+
[Fancybox]: http://fancyapps.com/fancybox/
110+
[Font Awesome]: http://fontawesome.io/
111+
[Grunt]: http://gruntjs.com/

themes/landscape/_config.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Header
2+
menu:
3+
Home: /
4+
Archives: /archives
5+
rss: /atom.xml
6+
7+
# Content
8+
excerpt_link: Read More
9+
fancybox: true
10+
11+
# Sidebar
12+
sidebar: right
13+
widgets:
14+
- category
15+
- tag
16+
- tagcloud
17+
- archive
18+
- recent_posts
19+
20+
# display widgets at the bottom of index pages (pagination == 2)
21+
index_widgets:
22+
# - category
23+
# - tagcloud
24+
# - archive
25+
26+
# widget behavior
27+
archive_type: 'monthly'
28+
show_count: false
29+
30+
# Miscellaneous
31+
google_analytics:
32+
favicon: /favicon.png
33+
twitter:
34+
google_plus:
35+
fb_admins:
36+
fb_app_id:
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
categories: Categories
2+
search: Search
3+
tags: Tags
4+
tagcloud: Tag Cloud
5+
tweets: Tweets
6+
prev: Prev
7+
next: Next
8+
comment: Comments
9+
archive_a: Archives
10+
archive_b: "Archives: %s"
11+
page: Page %d
12+
recent_posts: Recent Posts
13+
newer: Newer
14+
older: Older
15+
share: Share
16+
powered_by: Powered by
17+
rss_feed: RSS Feed
18+
category: Category
19+
tag: Tag

0 commit comments

Comments
 (0)