You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently NetlifyCMS added support for nested collections: decaporg/decap-cms#3716
That means netlifycms admin panel can be used to manage this theme content, it will require some shuffle in content structure because name.md files are not supported, only folder structure with _index.md files is.
I've been working through a similar space (for a project built on top of hugo-book) but I think the requirement to use only _index.md files is a bit of a show-stopper for broader adoption right now - that's less intuitive imo than additional pages in the default hierarchy as currently implemented.
I did find this very useful hugo module (tnd-netlifycms) which makes adding NetlifyCMS to your hugo site much easier. I think it should be possible to at least support the posts collection by default if that module is included by filling out the data/netlifycms folder with required data files (fields and collections with a default config.yaml). I have actually done just this in hugo-platen-netlify to enable my users to write posts from Netlify, though I haven't hooked up all of the shortcodes properly yet.
I would be happy to help with this and contribute my work upstream to hugo-book if that would be helpful.
Edit: the unblocking issue for easier adoption of NetlifyCMS for book section collections (i.e. without having to entirely restructure how you organize your files/folders) is filed and under consideration but not implemented.
A note for future:
Recently NetlifyCMS added support for nested collections: decaporg/decap-cms#3716
That means netlifycms admin panel can be used to manage this theme content, it will require some shuffle in content structure because
name.md
files are not supported, only folder structure with_index.md
files is.Example config:
The text was updated successfully, but these errors were encountered: