trying extra config

This commit is contained in:
2025-06-10 23:55:57 +02:00
parent 6350e23692
commit a9c1a3a8fe

View File

@@ -1,7 +1,6 @@
backend: backend:
name: gitea name: gitea
repo: bennolor/hugoblog # Path to your Gitea repository repo: bennolor/hugoblog # Path to your Gitea repository
branch: master
app_id: 10f0fe83-402c-4beb-b732-386fc394b4b5 # The Client ID provided by Gitea app_id: 10f0fe83-402c-4beb-b732-386fc394b4b5 # The Client ID provided by Gitea
api_root: https://gitea.benno-lorenz.com/api/v1 # API URL of your Gitea instance api_root: https://gitea.benno-lorenz.com/api/v1 # API URL of your Gitea instance
base_url: https://gitea.benno-lorenz.com # Root URL of your Gitea instance base_url: https://gitea.benno-lorenz.com # Root URL of your Gitea instance
@@ -10,7 +9,7 @@ media_folder: "static/images/uploads" # Media files will be stored here
public_folder: "/images/uploads" # The src attribute for uploaded media public_folder: "/images/uploads" # The src attribute for uploaded media
collections: collections:
- name: "posts" # Used in routes, e.g., /admin/collections/blog - name: "blogposts" # Used in routes, e.g., /admin/collections/blog
label: "Blog Posts" # Used in the UI label: "Blog Posts" # Used in the UI
folder: "content/posts" # The path to the folder where the documents are stored folder: "content/posts" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection create: true # Allow users to create new documents in this collection
@@ -42,4 +41,36 @@ collections:
- { label: "images", name: "images", widget: "image", multiple: true } - { label: "images", name: "images", widget: "image", multiple: true }
- { label: "Body", name: "body", widget: "markdown" } - { label: "Body", name: "body", widget: "markdown" }
########################
# POSTS COLLECTION
########################
- name: "posts"
label: "Posts"
folder: "content/posts"
path: "{{year}}-{{month}}-{{day}}-{{title}}/index"
media_folder: ""
public_folder: ""
create: true
slug: "index"
# Nested can be used for deeper than 2 layers of folders
# nested:
# depth: 100 # max depth to show in the collection tree
# summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field
editor:
preview: false
fields:
# - { label: "Layout", name: "layout", widget: "hidden", default: "post" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Summary", name: "summary", widget: "string" }
# - { label: "Description", name: "description", widget: "string" }
- {
label: "Authors",
name: "authors",
widget: "select",
multiple: true,
options: ["bob", "jane", "peter", "kate"],
}
- { label: "Date", name: "date", widget: "datetime" }
- { label: "Draft", name: "draft", widget: "boolean", default: true }
- { label: "Cover Image", name: "image", widget: "image" }
- { label: "Body", name: "body", widget: "markdown" }