www/static/admin/config.yml

30 γραμμές
1,6 KiB
YAML

2024-01-31 07:38:11 +02:00
backend:
name: gitea
repo: hellug/www
branch: staging
app_id: 2b488bae-c06e-4221-bb40-fd6fe0944663 # The Client ID provided by Gitea
api_root: https://dev.hellug.gr/api/v1 # API URL of your Gitea instance
base_url: https://dev.hellug.gr # Root URL of your Gitea instance
# This line should *not* be indented
media_folder: "static/media" # Media files will be stored in the repo under images/uploads
public_folder: "/media" # The src attribute for uploaded media will begin with /images/uploads
collections:
- name: "posts" # Used in routes, e.g., /admin/collections/blog
label: "Δημοσιεύσεις" # Used in the UI
folder: "content/posts" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
editor:
preview: false
slug: "{{slug}}-{{year}}-{{month}}-{{day}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Layout", name: "layout", widget: "hidden", default: "news"}
- {label: "Banner template", name: "bannertemplate", widget: "hidden", default: "hellug-banner.html"}
- {label: "Ημερομηνία Δημοσίευσης", name: "date", widget: "datetime"}
- {label: "Περίληψη", name: "summary", widget: "string"}
- {label: "Ετικέτα κατηγορίας", name: "summary", widget: "string"}
- {label: "Ετικέτες", name: "tags", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}