如何修复 'hugo serve' 不显示草稿
问题
运行
hugo_serve_drafts.sh
hugo serve你看到所有正常内容,但草稿文章或页面完全不显示
解决方案
你需要使用 --buildDrafts 或 -D 标志运行 hugo serve:
hugo_serve_with_drafts.sh
hugo serve -D现在,在浏览器中刷新页面,你应该能看到草稿和正常文章
Check out similar posts by category:
Hugo
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow