美文网首页
hugo常用命令

hugo常用命令

作者: 二三10111 | 来源:发表于2017-09-20 13:45 被阅读0次

编辑

新生成一篇文章

hugo new post/xxx.md

本地调试

hugo server -b localhost --buildDrafts

发布

1 执行hugo 发布命令,需要替换本地域名为外网域名,否则发布的应用,外网点击后访问的是内网地址。

hugo -b http://xxx.xxx.com/123 

2 当前文件头部draft=true 修改为 draft=false
3 上传public 中生成的静态网页到服务中

相关文章

网友评论

      本文标题:hugo常用命令

      本文链接:https://www.haomeiwen.com/subject/hzqosxtx.html