-
Notifications
You must be signed in to change notification settings - Fork 89
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
Image in the post does not appear #34
Comments
I used the following directory structure:
Images seem to be relative to the directory, so the image URL would simply be:
Perhaps you have a different use case? |
Caused by I reverted the changes in my fork and it works. |
Hm, to me the simplest solution seems to be @pks111607. Why revert changes then? Maybe there is a need for better documentation. I will look in to this. |
Just ran into the same issue with this theme. Therefore I'm also running a fork where the mentioned commit is reverted. |
Netlify-cms (which I use for authoring content) defaults to a static directory. Configuration options are listed here. |
I ran into the same issue, which brought me here too. I'm finding the |
Ok, I will try to see if this would work. In config settings
In templates image tags:
This way it will work as before and if you want to have images in the post folder you unmark the seetings in the config file if you have it there. |
Pushed! So from now on just add usepostimgfolder = true to the config.toml file under [params] if you want a non standard set-up, eg use post folder for images. Simple as that :-) |
Sounds good. Thanks for the fix :) |
Thanks @appernetic! I just tried your changes with success. |
It still does not seem to work on Hugo Themes and there is other weird issues with links there. |
If I set the image URL like this:
It won't appear because the rendered URL is
http://localhost:1313/post/work5/img/portfolio/railroad-forest1.jpg
I think the right URL should be
http://localhost:1313/img/portfolio/railroad-forest1.jpg
.Maybe I do something wrongly?
The text was updated successfully, but these errors were encountered: