Why leave jekyll and move to hexo
- Jekyll
- markdown syntax parsing change on github, and after my modify it not work as
before (so sad ;( ) - Jekyll use ruby
- markdown syntax parsing change on github, and after my modify it not work as
- hexo
- Hexo use node.js
- Have good themes
What is hexo
A fast, simple & powerful blog framework
see https://hexo.io/ for more
Installation
mkdir hexo
hexo init
- if fail to install depenances auto, install them manually.
cat package.json
, and look at the object of dependencies, just install themnpm install xxx --save
- you can list installed modules by
ls node_modules
- if fail to install depenances auto, install them manually.
- modify _config.yml, here is my changes:
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49diff --git a/_config.yml b/_config.yml
index 26c27e9..9b0b32c 100644
--- a/_config.yml
+++ b/_config.yml
@@ -3,11 +3,12 @@
## Source: https://github.com/hexojs/hexo/
# Site
-title: Hexo
+title: Matrix207's Blog
subtitle:
description:
-author: John Doe
-language:
+author: Matrix207
+language: zh-Hans
+#language:
timezone:
# URL
@@ -28,7 +29,7 @@ i18n_dir: :lang
skip_render:
# Writing
-new_post_name: :title.md # File name of new posts
+new_post_name: :year-:month-:day-: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
@@ -63,9 +64,17 @@ pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
-theme: landscape
+#theme: landscape
+theme: hexo-theme-next/
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
- type:
+ type: git
+ repository: github.com:matrix207/matrix207.github.com.git
+ branch: master
+
+# Toc
+toc:
+ maxDepth: 3
+
Select theme: hexo-theme-next or landscape
- compare these two themes, I like hexo-theme-next more than landscape. But
What features I need
- menus
Tips for fixing issues
- The
node
is not the real node, use commandsudo apt-get install nodejs-legacy
- Not found tags for hexo-theme-next
- Not found page directory