Hexo博客常用命令

  • 新建md格式的博文(create a new post):hexo new 标题
  • 启动node http服务,实时预览:hexo server
  • 生成静态网页:hexo generate, Generating static files
  • 增量生成静态网页:hexo generate --watch, Hexo can watch for file changes and regenerate files immediately. Hexo will compare the SHA1 checksum of your files and only write if file changes are detected.
  • 浏览静态网页:hexo server -s, In static mode, only files in the public folder will be served and file watching is disabled.
  • hexo version
  • Cleans the cache file (db.json) and generated files (public) : hexo clean
  • upgrade: npm install hexo-cli -g
  • theme: git clone --depth 1 https://github.com/hexojs/hexo-theme-landscape themes/landscape