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

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


  • 创建新文章
1
hexo n[ew] "postname"
  • 修改后提交
1
2
hexo g[enerate]
hexo d[eploy]
  • 本地运行
1
hexo s[erver]

添加右键点击桃心效果:

  1. 复制love.js
  2. /themes/next/source/js/src下新建love.js
  3. 将复制的内容粘贴至love.js
  4. /themes/next/layout/_layout.swig文件末尾加入js的引用代码 http://7u2ss1.com1.z0.glb.clouddn.com/love.js
  5. 提交 hexo g, hexo d

设置文件目录默认展开效果:

  1. 编辑themes/next/source/css/_custom/custom.styl
  2. 文章目录默认展开 加入.post-toc .nav .nav-child { display: block; }