Hexo notes

post-cover

1. Install and node.js npm

1.1 Check whether the installation / version number

node -v npm -v git -version

It is displayed above the corresponding version, without represents not installed.

1.2 Installation node.js and npm

brew install node

Above will be automatically installed.

2.hexo installation

sudo npm install -g hexo

2.2 Create a folder

mkdir blog
cd blog
hexo init

At this Macintosh-user (user) under -ckliu (username) blog directory folder will appear.

2.3 generates a set of static pages

G HEXO / G = Generate generating a static pages //
HEXO S = S // Server running on the server
/

Is now running in the browser http: // localhost: 4000 you can see the default configuration of the site hexo it!

2.4 Write a blog

The following input terminal

cd blog / each re-enter the terminal must re-enter the blog directory, otherwise it will pop up conmand Commands /
HEXO new new poat "My blog name" // late also can bolg-source - md format for editing changes in the blog post

Big Box  Hexo notes "Configuration config.yml Description"> 3. Configuration config.yml Description

Modify config.yml

depoly:
type : git
repo:https://github.com/c0k1sh/c0k1sh.github.io.git
branch:master

The above modification, the corresponding web ends so disposed, will be updated automatically determine the upload.
Also when you modify these properties, please note that the format, attributes and values to empty a cell, such as theme: landscape.

Upload

hexo deploy

Issue 1
$ hexo d
ERROR Deployer not found: git
solutions
npm install -save hexo-deployer-git
run hexo d again to

Update

hexo clean
hexo generate
hexo deploy

The browser will parse public directory, thus showing a web page.

4. associated domain name

Using a custom domain with GitHub Pages.——
github help

5.Tips

Multiple tag

  • tags:
    • tag1
    • day 2
    • categories: xxx

Summary problem

xcode loss

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun

Enter in a terminal:

xcode-select –install

The reason: the loss of xcode, you can install xcode. (Mac system upgrade will not find git and error)

Guess you like

Origin www.cnblogs.com/lijianming180/p/12026737.html
Recommended