Last Updated on 2016-05-10:
Writing in the front
I’ve been using Github for almost 3 years now, and I do find github convenient and easy to use, not only in terms of version control (which I personally feel is much better than SVN), but also as a platform to keep up with the latest technologies and trends. Let’s talk about one of them today
Ps: The corresponding Github repo for this article is here: github.com/litaotao/gi…
1. The easiest step
- Step 1: Create a new repO and clone the REPO locally
The repo name will be your Github username +.github. IO. For example, if my Github user name is Litaotao, the new repo name will be litaotao.github
Review images
Using the git command cloning templates: git clone [email protected]: litaotao/lot – blog – the template. The git
- Step 3: Copy template related files to your local repO
First, delete the.git folder in the template
Then, copy all the files from the template to your local repo using the command cp -r github-blog-template/ your_local_repo/*
Go to the your_local_repo directory and start your local blog with the Jekyll server –watch command.
If all goes well, go to: localhost:4000 in your browser and you will see your blog. I have put two posts in the template, screenshot below.
Review images
2. Customize the configuration
If you have successfully completed the first step, congratulations, you will soon have a blog of your own. Before that, you only need to change a configuration file: github-blog-template/_config.yml. I have highlighted the changes in Chinese, please refer to the notes and my blog to configure them: Github.com/litaotao/li…
Ok, if you have changed the configuration file and it is running properly locally, you can upload it to Github.
3. In-depth reading of the directory file description
4. To summarize
In general, the steps to build a blog on Github are as follows:
- Create a new repo with github username + ‘.github. IO ‘and clone it locally
- Copy all files from the template, excluding ‘.git ‘, into your repo
- Change the ‘_config.yml’ configuration file
- Local trial run, upload to Github
5. Other topics
The result is a simple, but mostly functional blog. In addition, there are some extension topics, interested students can Google or contact me, such as:
Review images
Review images
Review images
Review images