feat: Sveltia CMS admin panel (test-repo backend)

- static/admin/index.html — Sveltia CMS from CDN
- static/admin/config.yml — posts collection, TOML frontmatter
- branch cms only, не мержить в main/mirror
This commit is contained in:
PTP Admin
2026-04-29 00:02:28 +03:00
parent 514f188f4a
commit d4baad799e
2 changed files with 33 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
backend:
name: test-repo
media_folder: static/images/uploads
public_folder: /images/uploads
locale: ru
collections:
- name: post
label: Посты / Поездки
label_singular: Пост
folder: content/post
create: true
format: toml-frontmatter
extension: md
fields:
- { label: Заголовок, name: title, widget: string }
- { label: Slug (URL), name: slug, widget: string }
- { label: Дата, name: date, widget: datetime, format: 'YYYY-MM-DDTHH:mm:ss', default: '' }
- { label: Описание (анонс), name: description, widget: string }
- { label: Обложка (URL из S3), name: image, widget: string, required: false }
- { label: Контент, name: body, widget: markdown }
+11
View File
@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset=utf-8 />
<meta name=viewport content=width=device-width, initial-scale=1.0 />
<meta name=robots content=noindex />
<title>PTP Admin</title>
<script src="https://cdn.jsdelivr.net/npm/@sveltia/cms/dist/sveltia-cms.js"></script>
</head>
<body></body>
</html>