Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

安装和使用

1
2
3
4
5
6
7
8
9
$ npm install -g hexo-cli
$ hexo init <folder> #我的是blog#
$ cd <folder>
$ npm install
# 安装 hexo-deployer-git
$ npm install hexo-deployer-git --save
$ hexo clean
$ hexo g
$ hexo d

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

上传图片

1
2
3
1 把主页配置文件_config.yml 里的post_asset_folder:这个选项设置为true

2 在你的hexo目录下执行这样一句话npm install hexo-asset-image --save

示例

1
2
3
4
5
6
7
8
title: Linux权能与PAM机制
date: 2018-05-01 08:09:12
updated: 2018-05-01 08:09:12
tags:
Linux
capability
categories: Linux
copyright: true

More info: Deployment

-------------本文结束感谢您的阅读-------------
我知道是不会有人点的,但万一有人想不开呢?