Closed alanlivio closed 5 months ago
I was able to find a solution from the Hugo theme document I am using, called Hugo Blox [1]. See below how to do it.
Although I found the solution, maybe it is a good indication to update the document about the local git backend.
I suggest highlighting that the npx decap-server
is independent of the config.yml location and should always run from the repository root.
[1] https://docs.hugoblox.com/getting-started/cms/decap/ [2] https://decapcms.org/docs/beta-features/#working-with-a-local-git-repository
To Reproduce
CMS configuration at config/_default/params.yml
extensions:
cms:
branch: main
publish_mode: editorial_workflow
local_backend: true
Hi @alanlivio I understand that you found a solution, so I am closing the issue. It also seems that this is more of pa problem with the Hugo theme docs, not Decap docs.
Describe the bug
I want to use the Hugo website[1] with local_backend[2]. My problem is where I can put the config.yml. The tutorial [1] says to put the config.yml at static/admin/config.yml while the tutorial[2] says to put it in the root. I tried to follow [2] using relative paths but I received the error below.
[1] https://decapcms.org/docs/hugo/ [2] https://decapcms.org/docs/beta-features/#working-with-a-local-git-repository
To Reproduce
Expected behavior Hugo app
Screenshots![Screenshot 2024-01-11 204432](https://github.com/decaporg/decap-cms/assets/604808/bf10f1f7-ff98-4f29-b5fe-dc0a19932c9f)
Applicable Versions:
CMS configuration