Hello,
I am trying to organize my posts in month/year folders while keeping my photos in a single folder instead. Mainly because I am using Netlify Large Media to track all of my media in that destination.
Based on the docs it says if I use this setup.
collections:
- name: "news"
label: "News"
label_singular: "Article"
folder: "content/news"
create: true
slug: "{{slug}}"
path: "{{year}}/{{month}}/{{slug}}/post"
media_folder: ''
public_folder: ''
My images would store in the same folder as my post.
But if I remove the relative media and public folders and modify my path.
collections:
- name: "news"
label: "News"
label_singular: "Article"
folder: "content/news"
create: true
slug: "{{slug}}"
path: "{{year}}/{{month}}/{{slug}}"
Then my images should be sent to my specified folder in my global settings
media_folder: static/img
public_folder: /img
But it does not behave this way. By using path
in my blog setup, my images are saved relative to my post and not in my global image folder.
I am not really sure what I am missing here. I am still testing other variations here in case I can figure it out. By removing path
and only using slug
I no longer see my posts in my CMS preview. Any thoughts on this?