hugo-labels/static/admin/config.yml

25 lines
1.0 KiB
YAML

backend:
name: gitea
repo: tanshu/hugo-labels
app_id: 29063fe9-23eb-469d-9c93-76f208c9f563 # The Client ID provided by Gitea
api_root: https://git.tanshu.com/api/v1 # API URL of your Gitea instance
base_url: https://git.tanshu.com # Root URL of your Gitea instance
auth_endpoint: https://git.tanshu.com/login/oauth/authorize
branch: main # Branch to update
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: "labels"
label: "Labels"
folder: "content/labels"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- { label: "Name", name: "name", widget: "string" }
- { label: "Weight", name: "weight", widget: "string" }
- { label: "Date", name: "date", widget: "datetime" }
- { label: "Description", name: "description", widget: "markdown" }
- { label: "Nutrition", name: "nutrition", widget: "markdown" }