Leisurely Fool

A leisurely fool float in the ocean


  • Home

  • Tags6

  • Categories5

  • Archives10

  • About

  • Search

Build Your Second Github Page -- Project Page

Posted on 2019-08-20 In Other Learning , Hexo Views: Valine: 1.3k 1 mins.

Once we have build our blog page on Github, the only reserved domain {yourname}.github.io has been allocated to your accountm so that we cannot bind any other domain to it. But what if we want to build our second blog or setup another page for different purpose of use? Here we are – Github Project Page.

The process is just the same as building the personal blog. Let’s find it out.

Initialize Blog and Bind Github Pages

  1. Create a repository on Github, and you can name it whatever you like.

  2. Create a new branch named gh-pages

  3. Initiate the blog files on your computer (refer to my previous blog). Please pay attention, the Github configuration should be change to the branch.

    1
    2
    3
    4
    deploy: 
    type: git
    repo: https://github.com/{yourname}/{reponame}.git
    branch: gh-pages
  4. Update URL configuration in _config.yml

    1
    2
    url: http://{yourname}.github.io/reponame
    root: /reponame/
  5. hexo clean

  6. hexo g -d

  7. Done! You can go to {yourname}.github.io/{reponame} to check your website.

Bind Custom Domain

  1. Go to hexo source folder and add a new file named CNAME, fill in the domain. (To avoid being wiped out when submit changes to github)

  2. Go to aliyun.com (where you bought domain) and add a new settings for resoving. The record value should be the same as {yourname}.github.io

  • Post author: Lin Ce
  • Post link: https://leisurelyfool.com/posts/2d90b43b.html
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.
hexo Github
Tweet
Share
Link
Send
Send
八月碎碎念
Online Image Resources Without Copyright
  • Table of Contents
  • Overview
Lin Ce

Lin Ce

Major in Application of ML and DL
10 posts
5 categories
6 tags
GitHub E-Mail
  1. 1. Initialize Blog and Bind Github Pages
  2. 2. Bind Custom Domain
© 2019 Lin Ce | 9k | 8 mins.
|
0%