如何更新hexo博客

如何更新hexo博客

以markdown为模板进行自动渲染

  • 我们在博客根目录下的source/_post/中创建xx.md文件,作为我们的博客原始文档;

记得在md的头部配置标签和分类,以供筛选使用

  • 然后进行清除,生成,部署三部操作即可将新的博客更新到我们的博客服务器;
1
2
3
hexo clean
hexo generate
hexo deploy

本地和服务器端的静态文件路径在部署前后存在差异,请根据实际情况修改,同时记得使用绝对路径!

deploy完成后记得去服务器刷新服务,使新博客生效

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2015-2020 phyger
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信