-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于页面样式和路径的问题 #24
Labels
enhancement
New feature or request
Comments
Closed
将 |
感谢,已经把下面的 |
为什么我这个文件夹下是空的 |
NavBioIT 仓库已经更改为 https://github.com/shenweiyan/Bioit-top,对应访问链接:https://bioit.top/。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
关于路径的问题:
如果你的
baseURL = "https://example.com/WebStack"
(多了一个子目录WebStack
),本地预览时需要在浏览器中打开 http://127.0.0.1:1313/WebStack 进行预览;如果你的
baseURL = "https://example.com/
(不带子目录),本地预览在浏览器中打开 http://127.0.0.1:1313 即可。关于样式不显示的问题,可以通过下面的方法检查一下:
检查一下 hugo 的版本,建议使用 https://github.com/gohugoio/hugo/releases/v0.89.4/ 的版本;有用户反馈太高的 hugo 版本也可能会造成样式不显示。
如果
hugo server
正常,但hugo -D
生成的public/index.html
生成的静态文件直接在浏览器打开出现样式不显示:正常
hugo -D
生成的public
静态文件需要上传到 github pages/Cloudflare Pages,通过 url 才能正常显示,本地是无法直接查看。如果想要实现本地直接查看,可以在
config.toml
文件的顶部添加一个relativeURLs = true
的选项,hugo -D
重新生成一下public
静态文件即可。The text was updated successfully, but these errors were encountered: