0%

创建新文章

根目录命令行输入hexo new <模板> <文章名>新建文章
通常情况下使用hexo new post <title>即可,
注意这里的title不是文章名,具体文章中显示的文章标题可以在文章文件中修改,
例如:我这里新建一篇文章,titlearticle
命令行输入hexo new post article
此时在source/_posts/文件夹中多了一个article.md文件。

阅读全文 »

博客配置文件是指博客根目录下的_config.yml文件,
主题配置文件是指/themes/主题名/路径下的_config.yml文件

安装NexT主题

在博客根目录打开命令行,输入

1
git clone https://github.com/theme-next/hexo-theme-next themes/next

安装完成后,打开博客配置文件修改最上方的theme项为next

修改完成后命令行输入hexo s本地运行一下看是否生效。(接下来的每一步操作都可以运行验证一下)

阅读全文 »

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"

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

More info: Deployment