Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Sometimes you may want to build a blog to record your learning. As a beginner, you may consider using the Hexo framework with Github Pages to quickly set up you blog website.
Hexo
Hexo is a framework which convert markdown file into html page. Markdown has relatively simplier syntax, which means you do not need to waste time on wrapping your article with tags.
Setup
You can create a blog website with the following 3 command. Sounds simple right?
1 2 3 4 5
$ npm install hexo-cli -g # Install Hexo $ hexo init blog # Create blog website $ cd blog $ hexo new "<Title of you blog post>"# Create new post $ hexo s # Set up server on localhost:4000
Github Pages
Github Pages is a hosting service provided by GitHub. You can host static website for free by the following steps:
Create a repository called <your github username>.github.io.
Push the files into the repository main/master branch.
In the repository, go to Settings > Pages > Source, change the source to Github Actions.
Create file .github/workflows/pages.yml with the following contents and push to main/master (you may need to check your node.js version and fill into the file below):