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 as subdomain website images not rendering #5490

Closed
jnbli opened this issue Dec 2, 2018 · 2 comments
Closed

Hugo as subdomain website images not rendering #5490

jnbli opened this issue Dec 2, 2018 · 2 comments
Labels

Comments

@jnbli
Copy link

jnbli commented Dec 2, 2018

In config.toml, I set baseURL = "http://example.org/tutorial_site/".
Running hugo server, the website is hosted on localhost:1313/tutorial_site/.
The website works fine except for the images.

My image syntax does not work
![twitter blue](/twitter-blue.png) broken
Inspect element shows that hugo is looking for the image in localhost:1313/twitter-blue.png when in reality it is located in localhost:1313/tutorial_site/twitter-blue.png.

Besides doing
![twitter blue](/tutorial_site/twitter-blue.png)
is there a way to get images to work properly.
Ideally, they should work using ![twitter blue](/twitter-blue.png).

@onedrawingperday
Copy link
Contributor

Thanks for getting in touch, but it feels like this is a question that would be better suited to the Hugo Discussion Forum. GitHub issues are used only for bugs and enhancements. You may also find the answers you search for in Hugo Documentation.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants