Reiseblog mit CMS
This commit is contained in:
commit
7f820a6478
19 changed files with 600 additions and 0 deletions
45
public/admin/config.yml
Normal file
45
public/admin/config.yml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# Decap CMS – Konfiguration
|
||||
# ---------------------------------------------------------------
|
||||
# Vor dem ersten Login zwei Platzhalter ersetzen:
|
||||
# 1. repo: <FORGEJO_USER>/sattelfest (Besitzer/Repo in Forgejo)
|
||||
# 2. app_id: <OAUTH_CLIENT_ID> (aus der OAuth-App in Forgejo)
|
||||
# base_url ggf. an deine Forgejo-Adresse anpassen.
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
backend:
|
||||
name: gitea
|
||||
repo: FORGEJO_USER/sattelfest
|
||||
base_url: https://git.sattelfest.org
|
||||
branch: main
|
||||
app_id: OAUTH_CLIENT_ID
|
||||
|
||||
# Wohin Fotos aus dem Editor gespeichert werden.
|
||||
# Genau dieser Ordner wird beim Bauen nach GPS (EXIF) durchsucht ->
|
||||
# jedes hochgeladene Foto wird automatisch zu einem Marker auf der Karte.
|
||||
media_folder: public/photos
|
||||
public_folder: /photos
|
||||
|
||||
# Sprache der Oberfläche
|
||||
locale: de
|
||||
|
||||
collections:
|
||||
- name: posts
|
||||
label: Tagebuch
|
||||
label_singular: Eintrag
|
||||
folder: src/pages/posts
|
||||
create: true
|
||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||
extension: md
|
||||
format: frontmatter
|
||||
fields:
|
||||
- { label: Layout, name: layout, widget: hidden, default: "../../layouts/Base.astro" }
|
||||
- { label: Titel, name: title, widget: string }
|
||||
- {
|
||||
label: Datum,
|
||||
name: date,
|
||||
widget: datetime,
|
||||
format: "YYYY-MM-DD",
|
||||
date_format: "YYYY-MM-DD",
|
||||
time_format: false,
|
||||
}
|
||||
- { label: Text, name: body, widget: markdown }
|
||||
Loading…
Add table
Add a link
Reference in a new issue