-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
type: bugcode to address defects in shipped codecode to address defects in shipped code
Description
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
- git clone https://github.com/HugoBlox/theme-academic-cv
- cd theme-academic-cv
- git apply theme-academic-cv-decap-cms.patch # theme-academic-cv-decap-cms.patch
- hugo server
- cd static/admin && npx decap-server # at other shell
Expected behavior
Hugo app
Applicable Versions:
- Decap CMS version: 3.0.0
- Git provider: [GitHub]
- Node.JS version: v20.11.0
CMS configuration
local_backend: true
backend:
name: git-gateway
branch: main
media_folder: ../../content/media
public_folder: /img
collections:
- name: 'blog'
label: 'Blog'
folder: '../../content/post'
create: true
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
editor:
preview: false
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Description', name: 'description', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }
Metadata
Metadata
Assignees
Labels
type: bugcode to address defects in shipped codecode to address defects in shipped code