init: pusat bantuan tumbuhin
This commit is contained in:
46
public/admin/config.yml
Normal file
46
public/admin/config.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
# Konfigurasi Decap CMS untuk Gitea
|
||||
# Dokumentasi: https://decapcms.org/docs/gitea-backend
|
||||
|
||||
backend:
|
||||
name: gitea
|
||||
repo: tumbuhin-admin/pos-tumbuhin # owner/nama-repo di Gitea
|
||||
base_url: http://docs-giteasqlite-d8cedb-72-61-140-207.traefik.me # URL Gitea (TEST)
|
||||
api_root: http://docs-giteasqlite-d8cedb-72-61-140-207.traefik.me/api/v1
|
||||
app_id: GANTI_DENGAN_CLIENT_ID_OAUTH_GITEA
|
||||
branch: main
|
||||
|
||||
locale: id
|
||||
|
||||
# Gambar yang di-upload writer
|
||||
media_folder: public/images/docs
|
||||
public_folder: /images/docs
|
||||
|
||||
collections:
|
||||
- name: memulai
|
||||
label: Memulai
|
||||
label_singular: Artikel
|
||||
folder: content/docs/memulai
|
||||
create: true
|
||||
extension: mdx
|
||||
format: frontmatter
|
||||
slug: '{{slug}}'
|
||||
summary: '{{title}}'
|
||||
fields:
|
||||
- label: Judul
|
||||
name: title
|
||||
widget: string
|
||||
hint: 'Maksimal ±60 karakter, keyword utama di depan.'
|
||||
- label: Deskripsi (meta description)
|
||||
name: description
|
||||
widget: text
|
||||
hint: '±150–160 karakter. Muncul di hasil pencarian Google.'
|
||||
- label: Isi Artikel
|
||||
name: body
|
||||
widget: markdown
|
||||
hint: 'Mulai subjudul dari ## (judul artikel otomatis jadi H1).'
|
||||
|
||||
# Tambahkan kategori lain dengan pola yang sama, contoh:
|
||||
# - name: transaksi
|
||||
# label: Transaksi
|
||||
# folder: content/docs/transaksi
|
||||
# ...
|
||||
13
public/admin/index.html
Normal file
13
public/admin/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<title>Dashboard Writer | Tumbuhin Bantuan</title>
|
||||
<link href="/admin/config.yml" type="text/yaml" rel="cms-config-url" />
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user