- Make your own blog
Firstly, we have to create new repository at GitHub to save all the static files.
Get on to GitHub and click on
Unless you are willing to make a sub directory under your root domain
username.github.io/example, name your repository with
But both of them will have domain
You can check out the older post to install Hexo
You can manage settings of your blog with
But at the moment, lets set up URL and Deployment first.
title: Augusdn # Title of your blog
subtitle: Blog of my life # Sub title
description: Blog description # Blog description
author: Augusdn # Name of author
language: en # default language of theme, most of the themes support multi language
timezone: Australia/Sydney # Set Timezone (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
url: https://user_name.github.io/ # Your github page address
root: / # default by / but if you have sub dir, you can choose where it should set root as
permalink: :year/:month/:day/:title/ # default URL for new post. ex) 2018/01/01/new_post
Now, lets try generate static files and push it to GitHub.
hexo g -d
In most of the cases, you can write your post or draft and check on your local server before you push it to remote.
After push, you can check your blog at
In my situation, it will be augusdn.github.io
Lets make a new post with following command
$ hexo new post 'post name'
You can check this post file in
Edit this file as you like, with Markdown Editor, then check with local server.
$ hexo server
Then check your new post at localhost:4000
Confirm your posts and generate, then push it to github.
hexo g -d