# Decap CMS configuration for ASW-Hugo pack # Browser-based Markdown editing — no backend server required. # # Setup: # 1. Update `repo` below to your Forgejo repo path (owner/repo) # 2. Update `base_url` to your Forgejo instance URL # 3. Register an OAuth app in Forgejo: Settings → Applications → OAuth2 Apps # - Redirect URL: https://yoursite.com/admin/ # 4. Deploy admin/ alongside your Hugo output # 5. Access at https://yoursite.com/admin/ backend: name: gitea # Forgejo is Gitea-compatible repo: trentuna/vault # ← CHANGE: your repo (owner/repo) branch: main base_url: https://trentuna.com # ← CHANGE: your Forgejo instance URL auth_endpoint: /api/v1/oauth2/ media_folder: static/images public_folder: /images # Slug format for new posts slug: encoding: ascii clean_accents: true collections: - name: posts label: Posts label_singular: Post folder: content/posts create: true slug: "{{year}}-{{month}}-{{day}}-{{slug}}" preview_path: "posts/{{slug}}/" fields: - label: Title name: title widget: string - label: Date name: date widget: datetime default: "" date_format: "YYYY-MM-DD" time_format: "HH:mm:ss" format: "YYYY-MM-DDTHH:mm:ssZ" - label: Description name: description widget: string required: false hint: Short summary shown in list views - label: Tags name: tags widget: list required: false hint: Comma-separated tags - label: Draft name: draft widget: boolean default: true - label: Body name: body widget: markdown - name: pages label: Pages label_singular: Page folder: content create: true filter: field: _type value: page fields: - label: Title name: title widget: string - label: Description name: description widget: string required: false - label: Body name: body widget: markdown