hexo basic operation

Common Using Commend

  • 清除静态文件
    hexo clean
  • 生成静态文件
    hexo generate or hexo g
  • 部署
    hexo deploy or hexo d
  • 创建一片新的文章
    hexo new post name
  • 本地测试网页
    hexo server or hexo s

Deploy the Hexo in New Ubuntu

  1. follow the hexo official websitte link to install nodejs, npm and hexo
  2. cd into the your homepage directory run command
    npm install
  3. hexo 文章插入图片
    _config.yml:将post_asset_folder: false改为post_asset_folder: true
    npm install hexo-asset-image –save 将在source/_posts文件夹下生成 对应title的文件夹
    ![](title/picture_name.jpg) 即可

Further Function

Reference Tutorials

Hexo official website: link

Next Theme official website: link