-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4d5b0c
commit a570995
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
backend: | ||
name: git-gateway | ||
branch: main # Branch to update (optional; defaults to master) | ||
|
||
media_folder: "static/images/uploads" # Media files will be stored in the repo under static/images/uploads | ||
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads | ||
collections: | ||
- name: "blog" # Used in routes, e.g., /admin/collections/blog | ||
label: "Blog" # Used in the UI | ||
folder: "content/english/blog" # The path to the folder where the documents are stored | ||
create: true # Allow users to create new documents in this collection | ||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md | ||
fields: # The fields for each document, usually in front matter | ||
- { label: "Layout", name: "layout", widget: "hidden", default: "blog" } | ||
- { label: "Title", name: "title", widget: "string" } | ||
- { label: "Publish Date", name: "dates", widget: "datetime" } | ||
- { label: "Featured Image", name: "image", widget: "image" } | ||
- { label: "Authors", name: "authors", widget: "list" } | ||
- { label: "Body", name: "body", widget: "markdown" } |