hexo的常用命令

简写

  • hexo n "我的博客" == hexo new "我的博客" 新建文章
  • hexo p == hexo publish 发布草稿
  • hexo g == hexo generate 生成
  • hexo s == hexo server 启动服务预览
  • hexo d == hexo deploy 部署

完成后部署

两个命令的作用是相同的 hexo generate –deploy hexo deploy –generate

简写: hexo d -g #完成后部署 hexo s -g #完成后启动本地服务,可通过默认端口预览访问

只展示部分博客内容

<!--more-->

以下是余下全文

改变插入的图片大小

可以外面包裹div,单独设置style

1
<div style="width: 200px; margin: auto">![why](why.jpg)</div>