First commit
This commit is contained in:
commit
cee6e2d5b0
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
db.json
|
||||||
|
*.log
|
||||||
|
node_modules/
|
||||||
|
public/
|
||||||
|
.deploy*/
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "themes/landscape"]
|
||||||
|
path = themes/landscape
|
||||||
|
url = https://github.com/hexojs/hexo-theme-landscape.git
|
||||||
71
_config.yml
Normal file
71
_config.yml
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
# Hexo Configuration
|
||||||
|
## Docs: http://hexo.io/docs/configuration.html
|
||||||
|
## Source: https://github.com/hexojs/hexo/
|
||||||
|
|
||||||
|
# Site
|
||||||
|
title: Hexo
|
||||||
|
subtitle:
|
||||||
|
description:
|
||||||
|
author: John Doe
|
||||||
|
language:
|
||||||
|
timezone:
|
||||||
|
|
||||||
|
# URL
|
||||||
|
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
||||||
|
url: http://yoursite.com
|
||||||
|
root: /
|
||||||
|
permalink: :year/:month/:day/:title/
|
||||||
|
permalink_defaults:
|
||||||
|
|
||||||
|
# Directory
|
||||||
|
source_dir: source
|
||||||
|
public_dir: public
|
||||||
|
tag_dir: tags
|
||||||
|
archive_dir: archives
|
||||||
|
category_dir: categories
|
||||||
|
code_dir: downloads/code
|
||||||
|
i18n_dir: :lang
|
||||||
|
skip_render:
|
||||||
|
|
||||||
|
# Writing
|
||||||
|
new_post_name: :title.md # File name of new posts
|
||||||
|
default_layout: post
|
||||||
|
titlecase: false # Transform title into titlecase
|
||||||
|
external_link: true # Open external links in new tab
|
||||||
|
filename_case: 0
|
||||||
|
render_drafts: false
|
||||||
|
post_asset_folder: false
|
||||||
|
relative_link: false
|
||||||
|
future: true
|
||||||
|
highlight:
|
||||||
|
enable: true
|
||||||
|
line_number: true
|
||||||
|
auto_detect: true
|
||||||
|
tab_replace:
|
||||||
|
|
||||||
|
# Category & Tag
|
||||||
|
default_category: uncategorized
|
||||||
|
category_map:
|
||||||
|
tag_map:
|
||||||
|
|
||||||
|
# Date / Time format
|
||||||
|
## Hexo uses Moment.js to parse and display date
|
||||||
|
## You can customize the date format as defined in
|
||||||
|
## http://momentjs.com/docs/#/displaying/format/
|
||||||
|
date_format: YYYY-MM-DD
|
||||||
|
time_format: HH:mm:ss
|
||||||
|
|
||||||
|
# Pagination
|
||||||
|
## Set per_page to 0 to disable pagination
|
||||||
|
per_page: 10
|
||||||
|
pagination_dir: page
|
||||||
|
|
||||||
|
# Extensions
|
||||||
|
## Plugins: http://hexo.io/plugins/
|
||||||
|
## Themes: http://hexo.io/themes/
|
||||||
|
theme: landscape
|
||||||
|
|
||||||
|
# Deployment
|
||||||
|
## Docs: http://hexo.io/docs/deployment.html
|
||||||
|
deploy:
|
||||||
|
type:
|
||||||
19
package.json
Normal file
19
package.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "hexo-site",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"hexo": {
|
||||||
|
"version": ""
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"hexo": "^3.1.0",
|
||||||
|
"hexo-generator-archive": "^0.1.2",
|
||||||
|
"hexo-generator-category": "^0.1.2",
|
||||||
|
"hexo-generator-index": "^0.1.2",
|
||||||
|
"hexo-generator-tag": "^0.1.1",
|
||||||
|
"hexo-renderer-ejs": "^0.1.0",
|
||||||
|
"hexo-renderer-stylus": "^0.3.0",
|
||||||
|
"hexo-renderer-marked": "^0.2.4",
|
||||||
|
"hexo-server": "^0.1.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
3
scaffolds/draft.md
Normal file
3
scaffolds/draft.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: {{ title }}
|
||||||
|
tags:
|
||||||
|
---
|
||||||
3
scaffolds/page.md
Normal file
3
scaffolds/page.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: {{ title }}
|
||||||
|
date: {{ date }}
|
||||||
|
---
|
||||||
4
scaffolds/post.md
Normal file
4
scaffolds/post.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
title: {{ title }}
|
||||||
|
date: {{ date }}
|
||||||
|
tags:
|
||||||
|
---
|
||||||
37
source/_posts/hello-world.md
Normal file
37
source/_posts/hello-world.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
title: Hello World
|
||||||
|
---
|
||||||
|
Welcome to [Hexo](http://hexo.io/)! This is your very first post. Check [documentation](http://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](http://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
### Create a new post
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ hexo new "My New Post"
|
||||||
|
```
|
||||||
|
|
||||||
|
More info: [Writing](http://hexo.io/docs/writing.html)
|
||||||
|
|
||||||
|
### Run server
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ hexo server
|
||||||
|
```
|
||||||
|
|
||||||
|
More info: [Server](http://hexo.io/docs/server.html)
|
||||||
|
|
||||||
|
### Generate static files
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ hexo generate
|
||||||
|
```
|
||||||
|
|
||||||
|
More info: [Generating](http://hexo.io/docs/generating.html)
|
||||||
|
|
||||||
|
### Deploy to remote sites
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ hexo deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
More info: [Deployment](http://hexo.io/docs/deployment.html)
|
||||||
1
themes/landscape
Submodule
1
themes/landscape
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 22476aa92700b9e243f9c6516c886bc0fdd00cfd
|
||||||
Loading…
x
Reference in New Issue
Block a user