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

Multihost fails with ERROR when no baseURL on top level #4397

Closed
bep opened this Issue Feb 11, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@bep
Member

bep commented Feb 11, 2018

This should not be needed.

But the current workaround is to replicate one of the baseURL values from the languages section up to the top level.

uglyurls = true
baseURL = "https://www.example.com"


[languages]
[languages.en]
baseURL = "https://www.example.com"
languageName = "en"
title = "In English"
weight = 1

[languages.pl]
baseURL = "https://www.example.org"
languageName = "pl"
title = "Po Polsku"
weight = 2

@bep bep added the Bug label Feb 11, 2018

@bep bep added this to the v0.37 milestone Feb 11, 2018

@pawelurbanski

This comment has been minimized.

pawelurbanski commented Feb 12, 2018

Thanks @bep for creating a proper issue with tags and so on. A sidenote for everyone: I have problems with some bits of Github using a screen reader.
There is a strange behavior now related to this issue:
The index/home pages are generated when using this workaround, but the content pages located in folders are not. They exist when Hugo is run as a server, but the files are not written to the public directory when generating the site. The number of pages reported by Hugo is correct, but they are not physically outputted.
Dear @bep, the file I sent you the other day should have a content directory with some sample files besides the homepages.

@bep

This comment has been minimized.

Member

bep commented Feb 12, 2018

@pawelurbanski I will have a look at this when I fix this issue. But I suspect that the additional problem is something completely unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment