Leisurely Fool

A leisurely fool float in the ocean


  • Home

  • Tags6

  • Categories5

  • Archives10

  • About

  • Search

Build Personal Blog -- Github Page + Hexo Installation

Posted on 2019-08-19 Edited on 2019-08-20 In Other Learning , Hexo Views: Valine: 967 1 mins.

Installation Process (MacOS)

  1. Create a new repository on Github named {yourname}.github.io. The {yourname} must be the same as your Github username.

  2. Install hexo (node and git need to be installed previously)

    npm install -g hexo-cli

  3. Create local blog folder

    hexo init myBlog
    cd myBlog
    npm install

  4. Install hexo developer git

    npm install hexo-deployer-git --save

  5. Create new blog

    hexo new "My New Post"

  6. Start local server

    hexo s

  7. So far you can open the browser and go to localhost:4000, then you will see the Hello World page

  8. Add github push configuration to hexo _config.yml (there is space between key and value, BE CAREFUL)

    1
    2
    3
    4
    deploy:
    type: git
    repo: https://github.com/{yourname}/{yourname}.github.io.git
    branch: master
  9. Clean the public folder to avoid cache

    hexo clean

  10. Push to github (g stands for generate the needed files in public folder)

    hexo g -d

  11. Go to {yourname}.github.io and you will see the succeful online page

  • Post author: Lin Ce
  • Post link: https://leisurelyfool.com/posts/11353.html
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.
hexo Github
Tweet
Share
Link
Send
Send
Hexo (NexT) Installation and Configuration (The Most Complete)
Build Personal Blog -- Hexo (NexT) Basic Configuration
  • Table of Contents
  • Overview
Lin Ce

Lin Ce

Major in Application of ML and DL
10 posts
5 categories
6 tags
GitHub E-Mail
  1. 1. Installation Process (MacOS)
© 2019 Lin Ce | 9k | 8 mins.
|
0%