-
Notifications
You must be signed in to change notification settings - Fork 182
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
Making images work when posts have a year/month/title structure #79
Comments
Hi, can post the contents of your Also, if you haven't already, take a look at the docs concerning Media and Public Folders and the Image Widget. |
@danurbanowicz it's only the default config.yml from this repository with the line "path" added:
|
I'd like to be able to help you with this issue, but time is a problem for me right now and CMS post images are not yet within the scope of this boilerplate, so I am going to have to close. Sorry about that. I'm sure you've already had a look, but the Decap docs should help you figure this out if you haven't already. https://decapcms.org/docs/beta-features/#folder-collections-media-and-public-folder |
@ced64k this resolved the issue for me and here is the plugin discussion adding support to relative paths. |
Thank you @danurbanowicz I'll check 👍 |
Hi,
I am trying to use this boilerplate, but I have an issue with images. My structure is as follows:
To display posts in Netlify CMS, I have to add
path
in config.yml like this, otherwise, it shows "No entry":path: "{{year}}/{{month}}/{{month}}/{{slug}}/index"
But then, if I upload an image, it places it in
/posts/2023/08/post-title/
instead of/static/img
. And in the Markdown editor, it generates![](image.jpg)
instead of![](/static/img/image.jpg
If I remove
path
from config.yml, I can create a new post (but then it goes into /posts/new-post.md), and the image is correctly placed in /static/img/Than you.
The text was updated successfully, but these errors were encountered: