xiaoheiAh / hugo-theme-pure

A pure theme for Hugo
https://themes.gohugo.io/theme/hugo-theme-pure/
MIT License
266 stars 128 forks source link

在本地可以渲染成功,放在github page上就渲染不成功哎~ #82

Closed cenchaojun closed 4 years ago

cenchaojun commented 4 years ago

我可以在本地上渲染成功,但是部署到github page上就渲染不成功哎~这个是为啥呢~

stefanJi commented 4 years ago

你需要将 hugo 在 public 目录下生成的文件托管到 github page 对应的 repo 下

xiaoheiAh commented 4 years ago

推荐使用 github action 自动部署。很方便。这里有介绍

huanggze commented 4 years ago

大兄弟,我把 public 的内容放到 github page 对应的 repo 下了,还是渲染不正常。你了解咋回事吗?@stefanJi

image

huanggze commented 4 years ago

浏览器报错 image

huanggze commented 4 years ago

解决了,还要修改 hugo config.yaml 里的 baseURL 参数