Skip to content

sunhao-java/blog

Repository files navigation

Introduce

This is my blog site source code, where the source code is in the master branch and the generated static pages are in the gh-pages branch.

Technology

  1. Node.js (Base)
  2. Hexo (Build blog site)
  3. Markdown (Write blog)
  4. See more in package.json

How to develop

You'll need the nodejs development environment, as well as a proper installation of npm or cnpm with the latest version. For cnpm, please refer to CNPM

  1. Clone this repo to your PC.
git clone [email protected]:sunhao-java/blog.git
  1. Install hexo and hexo-cli globally.(npm/cnpm)
npm install hexo hexo-cli -g
  1. Install dependencies.
// root of blog repo
npm install
  1. Instructions for use
1. hexo serve
2. hexo generate
3. For more, please visit hexo's official website at https://hexo.io/zh-cn/

How to build with Github Actions

  1. build

    see more at .github/workflows/deploy.yml

  2. Configuration in gihub

  3. Using custom domain names

    • Create a file named CNAME in the blog/source directory
    • The content is the domain name you will use
      www.crazy-coder.cn
      
    • Configure domain name resolution on your domain's provider's website
      Record type: CNAME
      Host Records: www
      Recorded Value: sunhao-java.github.io
      
    • sunhao-java.github.io
      • sunhao-java: your github username
      • github.io: fixed value

About

my blog build of hexo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published