This article was originally published on MOOC, welcome to reprint, just indicate the source.
This blog post will continue to take you to optimize the blog site, build online site, set up personalized domain name and so on
It is recommended to read my other three basic posts before reading this article
1. About setting up personal blog in Hexo6.0 (Basic)
2. Build personal blog about Hexo6.0 (Advanced)
3. About building personal blog in Hexo6.0 (Advanced)
4. About Building a personal blog in Hexo6.0 (Coding + Baidu – included)
This blog post will teach you how to create an online personal site, set up a personalized domain name, as well as hosting projects on Github and coding, while allowing Google and Baidu search engines to include your site, to increase the natural traffic of the site.
1. Buy a personalized domain name
Hexo6.0 personal blog building
2. Host the site on Github
1. Set up a Giithub account
2. Create a warehouse
3. Configure SSH
Generate SSH:
Git Bash is installed with SSH by default on both Linux and Mac systems, while Git Bash is installed with SSH on Windows systems. If the following message is displayed, it indicates that you have installed SSH on your computer. Otherwise, please search for your own installation
Add SSH:
This. SSH file is generally in the system C disk under the user, inside the file is all hidden file Settings display can be seen.
4. Submit your project to Github
Open the blog site configuration file _config.yml and add the following:
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repository:
github: [email protected]:darryrzhong/darryrzhong.github.io.git
coding: [email protected]:darryrzhong/darryrzhong.blog.git
branch: master
Copy the code
Both Github and coding are hosted here. If coding is not configured, it is recommended to read baidu + Coding first. This is only hosted on Github, so delete the coding configuration, otherwise push will report an error.
Where the address is here:
Git Bash:
hexo g
hexo d
Copy the code
If the following is displayed, the site is successfully hosted.
Take a look at our Github and it’s no longer empty
Open your browser and type xxxxx.github. IO to successfully visit our site.
3. Set a personalized domain name for the site.
Let’s start with two record types:
- A- Points the domain name to an IPV4 address
- CNAME- Points a domain name to another domain name
Github is essentially an online server that provides two IP addresses: 192.30.252.154 and 192.30.252.153. Github. IO, so each Github account can only create one such repository and assign one such address.
Next, log in to wanwang to set DNS cloud server resolution:
After adding resolution, setting up the Github domain binding is done.
At this point we have successfully hosted the site project on Github and successfully set up our own personalized domain name.
4. Include your site in Google
About Google, domestic access is prohibited, so most people still use baidu search, but baidu is not flattery, so still can’t use the Google, as for how to use Google would not be in this category, of course, also can leave a message the background well, we can discuss in private discussions, the background is a free VPN gift Package! .
Google included and Baidu’s approach is the same, similar:
1. Enter firstGoogle Site Platform
2. If you don’t have a Google account, you need to register for one. If you do, you can log in directly
3. Submit a blog site (personalized domain name) to verify ownership.
Here we choose the simplest domain name resolution method, follow the steps step by step.
4. Submit your site map
After verifying ownership, we can submit our sitemap.
After all this time, let’s see the results
By now, we have successfully hosted the site project on Github, configured our personalized domain name, and was included by Google, isn’t it a little excited, the sense of achievement is overwhelmed, haha.
Write here, about Hexo6.0 build personal blog series is all over, more pursuit of children’s shoes can also write JS to create a truly unique personal site. There will be a follow-up post on tips for using Markdown to write articles. Blogs are for writing after all!
Welcome to darryrzhong, more dry goods waiting for you to get yo.
A little red heart, please! Because your encouragement is the biggest power that I write!
Please pay attention to more wonderful articles
- Personal blog: Darryrzhong
- The Denver nuggets
- Jane’s book
- SegmentFault
- Moocs Notebook