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

起初我以为是我配置问题,看了你们的404页面发现都有问题 #199

Closed
movny opened this issue Jun 13, 2020 · 5 comments · Fixed by #200
Closed

起初我以为是我配置问题,看了你们的404页面发现都有问题 #199

movny opened this issue Jun 13, 2020 · 5 comments · Fixed by #200

Comments

@movny
Copy link

movny commented Jun 13, 2020

所有的相对路径应该为绝对路径

@movny
Copy link
Author

movny commented Jun 13, 2020

不是用ipfs的,随便输个url看一看,看了你们博客我只发现少数是没问题

@movny
Copy link
Author

movny commented Jun 13, 2020

20200614-1
20200614-2

@movny
Copy link
Author

movny commented Jun 14, 2020

@reuixiy 还是不行啊
额我没看懂404的逻辑,一个/en/404.html一个/404.html,如何确保随便一个错误url访问到对应的语言呢domain.com/a/b/xxx
404页面中,我虽然在config里面写的地址是/开头的,但domain.com/a/b/xxx中仍然是./
20200614-4

20200614-3

@reuixiy
Copy link
Owner

reuixiy commented Jun 14, 2020

如果你要将路径修改为绝对路径,将 relativeURLs 修改为 false 即可。

P.S. 看了一下,貌似你是克隆的我的博客仓库,可是我看一下好像我的博客没有这个问题,所以我也是摸不着头脑了。

@movny
Copy link
Author

movny commented Jun 14, 2020

谢谢啦

ulmefors pushed a commit to ulmefors/hugo-theme-meme that referenced this issue Nov 22, 2020
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

Successfully merging a pull request may close this issue.

2 participants