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:
@@ -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 }
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user