LEARNING ...


  • Home

  • Categories

  • Archives

无好奇,不迭代

Posted on 2018-05-29

冬吴同学会:无好奇,不迭代
人脑的基本能力

  • 提问
  • 推理

所谓学问,就是学会提问

教育维艰

Posted on 2018-05-20 | Edited on 2018-05-29 | In baby

冬吴同学会:教育维艰

事物复杂度的三个层级。

  1. 容易。比如造汽车
  2. 复杂。比如造火箭
  3. 超级复杂。教育孩子

在教育孩子这个事情上,保持充分的谦卑,不要自以为是。

Recap: Hexo + NexT + Github Pages

Posted on 2018-05-15 | Edited on 2018-05-21 | In hexo

Hexo

Put blog source code to anywhere but github pages’ master branch.

NexT

Add NexT to blog as git submodule.

And change the scheme in themes/next/_config.yml (optional)

1
2
3
4
5
6
7
8
9
# ---------------------------------------------------------------
# Scheme Settings
# ---------------------------------------------------------------

# Schemes
# scheme: Muse
# scheme: Mist
# scheme: Pisces
scheme: Gemini

Github Pages

Update _config.yml

1
2
3
4
deploy:
type: git
repo: git@github.com:xxx/xxx.github.io.git
branch: master

Deploy

1
2
3
npm install hexo-deployer-git --save # once
hexo generate
hexo deploy

Portraits

Posted on 2018-05-12 | Edited on 2018-05-15 | In baby

Self portrait

Mom&Dad

Self portrait

谁家的可可

Posted on 2018-05-11 | Edited on 2018-05-15 | In baby

Add Images To Blog

Posted on 2018-05-10 | Edited on 2018-05-15 | In hexo

Config

Update _config.yml

1
post_asset_folder: true

Then Hexo will create a folder every time you make a new post with the hexo new <title> command. This asset folder will have the same name as the markdown file associated with the post.

Referencing

1
2
3
{% asset_img slug [title] %}
# example
{% asset_img hello.jpeg "Hello World" %}

Add Admin To Hexo

Posted on 2018-05-05 | Edited on 2018-05-15 | In hexo

Install

1
npm install --save hexo-admin

Route

1
<base_url>/admin

Auth

Go to <base_url>/admin/Settings, follow the link: “Setup authentification here.”

Can’t use with Github Pages

Change Theme To NexT

Posted on 2018-05-04 | Edited on 2018-05-15 | In hexo

Download theme

1
2
cd <blog dir>
git submodule add https://github.com/theme-next/hexo-theme-next themes/next

Change theme

Update _config.yml

1
theme: next

Change scheme

Update themes/next/_config.yml

1
2
3
4
5
6
7
8
9
# ---------------------------------------------------------------
# Scheme Settings
# ---------------------------------------------------------------

# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini

Deploy To Github Pages

Posted on 2018-05-03 | Edited on 2018-05-15 | In hexo

Update _config.yml

1
2
3
4
deploy:
type: git
repo: git@github.com:xxx/xxx.github.io.git
branch: master

Deploy

1
2
3
npm install hexo-deployer-git --save
hexo generate
hexo deploy

And that’s all!

Better practice:
Make a branch for the blog source code, and let the deploy process update the master branch.

First Step

Posted on 2018-05-02 | Edited on 2018-05-15 | In hexo

Install & Run

1
2
3
4
npm install hexo-cli -g
hexo create blog
cd blog
hexo server

Create a new post

1
hexo new "First Step"
12
William W

William W

Product & Development & Life

11 posts
2 categories
© 2018 William W
Powered by Hexo v3.7.1
|
Theme — NexT.Gemini v6.2.0