hexo 命令集合

快速开始

创建一篇文章

1
$ hexo new "My New Post" "tags"

更多信息: Writing

启动服务

1
2
$ hexo server
$ hexo s

更多信息: Server

打包构建静态文件

1
$ hexo generate

更多信息: Generating

[发布站点]

1
$ hexo deploy

更多信息: Deployment

http://blog.csdn.net/qq_23435721/article/details/50997275

添加搜索的方法

1
npm install hexo-generator-search --save

更多信息: 站内搜索
更多信息: github地址

seo优化

1
2
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save

更多信息: 优化教程
更多信息: 优化教程
更多信息: 优化教程

首页显示tag的两种方法

  1. 方法一

    1
    2
    3
    4
    5
    6
    title: Hello World
    date: 2000-12-03 00:00:00
    ---
    <Excerpt in index | 首页摘要>
    +<!-- more -->
    <The rest of contents | 余下全文>
  2. 方法二

    1
    2
    3
    4
    5
    title: Hello World
    date: 2000-12-03 00:00:00
    +description: "Welcome to Hexo! This is your very first post."
    ---
    <Contents>