Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunhao-java/blog
my blog build of hexo
https://github.com/sunhao-java/blog
blog hexo
Last synced: 13 days ago
JSON representation
my blog build of hexo
- Host: GitHub
- URL: https://github.com/sunhao-java/blog
- Owner: sunhao-java
- Created: 2016-12-22T04:21:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T01:29:05.000Z (3 months ago)
- Last Synced: 2024-11-10T12:49:32.585Z (2 months ago)
- Topics: blog, hexo
- Language: Stylus
- Homepage: https://www.crazy-coder.cn/
- Size: 10.6 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# [Blog](https://www.crazy-coder.cn/)
## IntroduceThis 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](https://github.com/cnpm/cnpm)1. Clone this repo to your PC.
```
git clone [email protected]:sunhao-java/blog.git
```2. Install hexo and hexo-cli globally.(npm/cnpm)
```
npm install hexo hexo-cli -g
```3. Install dependencies.
```
// root of blog repo
npm install
```4. 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
![](https://imgs.lodsve.com:9000/images/2024/08/23/b044ba3f0e100b0f32a0bbb5c50c85e1.png)
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