Skip to content
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

hugo -D 问题 #21

Closed
541013515 opened this issue Apr 15, 2023 · 6 comments
Closed

hugo -D 问题 #21

541013515 opened this issue Apr 15, 2023 · 6 comments

Comments

@541013515
Copy link

hugo server 后能正常访问,但是访问的路径是:http://localhost:1313/WebStack-Hugo,相比教程里多了WebStack-Hugo这个context root

hugo -D 生成的 public 目录,访问 index.html 会出现元素没法加载的情况,感觉就是这个 WebStack-Hugo 影响了

是哪里需要配置下么?

@shenweiyan
Copy link
Owner

能问一下是什么元素没法加载吗?

@yimao009
Copy link

我的也是, hugo server 正常访问, hugo -D 生成的public里的index预览,样式缺少
1234

@shenweiyan
Copy link
Owner

shenweiyan commented Oct 25, 2023

我的也是, hugo server 正常访问, hugo -D 生成的public里的index预览,样式缺少 1234

#24 参考一下这里的教程

@lxong8
Copy link

lxong8 commented Apr 3, 2024

hugo -D 的时候提示:WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination
然后最终样式就如楼上的图示

@shenweiyan
Copy link
Owner

hugo -D 的时候提示:WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination 然后最终样式就如楼上的图示

WARN 的信息不影响使用,可以不需要额外处理;对于样式不显示,请参考 https://github.com/shenweiyan/WebStack-Hugo/issues/24,或者拉取最新的代码重新部署一下试试。

@shenweiyan
Copy link
Owner

shenweiyan commented Apr 8, 2024

hugo -D 的时候提示:WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination 然后最终样式就如楼上的图示

WARN 的信息不影响使用,可以不需要额外处理;对于样式不显示,请参考 #24 ,或者拉取最新的代码重新部署一下试试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants