2024-05-24 12:07:00 +00:00
|
|
|
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}}"
|
2024-05-26 17:14:51 +00:00
|
|
|
identifier_field: "name"
|
2024-05-24 12:07:00 +00:00
|
|
|
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" }
|