0%

Hello World

1
2
3
4
5
6
#include<bits/stdc++.h>
using namespace std;
int main(){
cout<<"Hello world!\n";
return 0;
}

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

Run commands at E:\github\blog.

Create a new post

1
2
$ hexo new "My New Post"
# n -> new

More info: Writing

Run server

1
2
$ hexo server
# s -> server

More info: Server

Generate static files

1
2
$ hexo generate
# g -> generate

More info: Generating

Deploy to remote sites

1
2
$ hexo deploy
# d -> deploy

More info: Deployment

Quick preview

1
$ sh preview.sh

Quick deploy

1
$ sh deploy.sh

Post settings

Where are they?

E:\github\blog\source\_posts

Add to categories

1
categories: xxx

Add tags

1
2
3
tags:
- tag1
- tag2

Pin to top

1
2
3
4
# add to front-matter
top: true #add "置顶"
sticky: x (1~100) #add an icon; set priority
# These are different plugins.

Hide article

1
2
3
# add to front-matter
hide: true
# This will hide a post from home page

Encrypt article

1
2
# add to front-matter
password: 123456

Insert image

A folder with the same name will be created when hexo n "". Put images in this folder and then use ![](xxx\xxx.png). Note that images won't be loaded properly on home page.

------ Q.E.D.~~~喵~~~ ------