mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Create config.yaml
This commit is contained in:
parent
6693ce4121
commit
fd7a21aad2
17
static/admin/config.yaml
Normal file
17
static/admin/config.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
backend:
|
||||||
|
name: git-gateway
|
||||||
|
branch: master # or main if you're using a different default branch
|
||||||
|
|
||||||
|
media_folder: "static/images/uploads" # Media files will be stored here
|
||||||
|
public_folder: "/images/uploads"
|
||||||
|
|
||||||
|
collections:
|
||||||
|
- name: "blog"
|
||||||
|
label: "Blog"
|
||||||
|
folder: "content/blog"
|
||||||
|
create: true
|
||||||
|
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||||
|
fields:
|
||||||
|
- { label: "Title", name: "title", widget: "string" }
|
||||||
|
- { label: "Date", name: "date", widget: "datetime" }
|
||||||
|
- { label: "Body", name: "body", widget: "markdown" }
|
Loading…
Reference in New Issue
Block a user