Hello World
发表于:2020-09-10 |
字数统计: 185 | 阅读时长: 1分钟 | 阅读量:

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

Create a new post

1
$ hexo new "My New Post"

avatar
avatar
More info: Writing

Run server

1
npm install hexo-generator-search --save

可以在配置文件中设置默认样式,为简单的一句话提供最的简便写法。

1
2
3
search:
path: search.xml
field: post
1
2
3
4
5
6
7
8
9
10
11
{
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,vue}": [
"vue-cli-service lint",
"git add"
]
}
}
1
2
3
4
5
6
7
8
9
10
11
// babel.config.js
module.exports = {
presets: [
['@vue/app', {
polyfills: [
'es.promise',
'es.symbol'
]
}]
]
}

这是一段文字哦
test

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

上一篇:
testimg