Blog set up

Create the Github repository

  1. Registered account
  2. Note: the name of the warehouse must be carefully chosen, remember that the local folder is the same as the name of the warehouse
  3. For example, your repository name SSS -s.github. IO is the same as your file name
  4. Create your own process baidu bar is mainly said command line attention points

The local environment has been configured

  1. Click on the desktop to open gitbash and enter $git version
  2. Download node.js and click next to install. The installation process version is recommended. 8.1 above is very stable nodejs.org/zh-cn/downl… After the installation is complete, you can check your version of $node-v
  3. Install hexo and create a local folder with the same github name as you created your github name.github

$hexo init Initialization command

$NPM install–save hexo-deployer global install command

$ hexo g

$hexo d for linking to GitHub’s role

  1. Check the version
  2. $ hexo -v

  3. Node_modules: is a dependency package
  4. Public: stores the generated page
  5. Scaffolds: Templates for commands to generate articles, etc
  6. Source: Various articles created with commands
  7. Themes: the theme
  8. _config.yml: Configuration of the entire blog
  9. Db. Json: source parsing results
  10. Package. json: configuration information of the module project required by the project

Configuring Account Information

Configure the account

$git config –global user.name

email

Git config –global user.email $git config –global user.email

Configure SSH

$ssh-keygen-t rsa -c”

Type the following command to find id_rsa.pub

$ cd ~/.ssh

$ cat id_rsa.pub

Once you’ve done that, you’re going to open another git page and you’re going to generate a long piece of code and you’re going to copy it all and then you’re going to find setting and then you’re going to find an SSH and then you’re going to have an SSH and then you’re going to have a new sshkey and then you’re going to have a title and you can thank whatever you want The following box will paste that command code and then save sSH-RSA

validation

$SSH -t “Your github email address”

Deployment project

2. Locate the _config.yml file

repo: deploy: type: git repo: [email protected]:EG-GCZL/dreamdancer.github.io.git repo: [email protected]: your github name/the name of your repository github.io

  1. When you’re done, type the command on Git
  2. hexo g
  3. hexo d

Making the configuration of the

Go to your repository and then go to Settings and then go all the way down to Github Pages which has an option

  1. Master Bransh check this on the left and save on the right
  2. Then a green box will appear Your site is published at eg-gczl.github. IO/This is Your blog address
  3. Add your blog name/warehouse address to the top and you’re done
  4. $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy = $hexo desploy

$git clone github.com/iissnan/hex… Themes/Next is the next theme

  1. $ hexo g -d
  2. $ hexo s
Note that you must pay attention when modifying the address and warehouse name
The details are your SSH section and the part where you create the repository and your NodeJS version