From cf6bcfee6cb197ebb6b5a3ff2577bb12f3ed2bd9 Mon Sep 17 00:00:00 2001 From: Somrat <58769763+tfsomrat@users.noreply.github.com> Date: Sun, 30 Nov 2025 15:11:47 +0600 Subject: [PATCH] added sitepins cms settings --- .sitepins/config.json | 17 +++++++++ .sitepins/schema/authors.json | 57 +++++++++++++++++++++++++++ .sitepins/schema/blog.json | 72 +++++++++++++++++++++++++++++++++++ package.json | 2 +- 4 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 .sitepins/config.json create mode 100644 .sitepins/schema/authors.json create mode 100644 .sitepins/schema/blog.json diff --git a/.sitepins/config.json b/.sitepins/config.json new file mode 100644 index 0000000..71c82ac --- /dev/null +++ b/.sitepins/config.json @@ -0,0 +1,17 @@ +{ + "media": { + "root": "public/images", + "public": "public" + }, + "content": { + "root": "src/content" + }, + "code": { + "root": "src/layouts" + }, + "themeConfig": [ + "src/config" + ], + "arrangement": [], + "showCommitModal": true +} \ No newline at end of file diff --git a/.sitepins/schema/authors.json b/.sitepins/schema/authors.json new file mode 100644 index 0000000..c2b5d87 --- /dev/null +++ b/.sitepins/schema/authors.json @@ -0,0 +1,57 @@ +{ + "file": "src/content/authors/john-doe.md", + "name": "authors", + "fileType": "md", + "fmType": "yaml", + "template": [ + { + "label": "Title", + "name": "title", + "type": "string", + "value": "" + }, + { + "label": "Email", + "name": "email", + "type": "string", + "value": "" + }, + { + "label": "Image", + "name": "image", + "type": "media", + "value": "" + }, + { + "label": "Description", + "name": "description", + "type": "string", + "value": "" + }, + { + "label": "Social", + "name": "social", + "type": "Array", + "fields": [ + { + "label": "Name", + "name": "name", + "type": "string", + "value": "" + }, + { + "label": "Icon", + "name": "icon", + "type": "string", + "value": "" + }, + { + "label": "Link", + "name": "link", + "type": "string", + "value": "" + } + ] + } + ] +} \ No newline at end of file diff --git a/.sitepins/schema/blog.json b/.sitepins/schema/blog.json new file mode 100644 index 0000000..5b2cf10 --- /dev/null +++ b/.sitepins/schema/blog.json @@ -0,0 +1,72 @@ +{ + "file": "src/content/blog/post-2.md", + "name": "blog", + "fileType": "md", + "fmType": "yaml", + "template": [ + { + "name": "title", + "label": "Title", + "type": "string", + "value": "", + "defaultValue": "" + }, + { + "name": "meta_title", + "label": "Meta Title", + "type": "string", + "value": "", + "defaultValue": "" + }, + { + "name": "description", + "label": "Description", + "type": "string", + "value": "", + "defaultValue": "" + }, + { + "name": "date", + "label": "Date", + "type": "Date", + "value": "", + "defaultValue": "", + "alwaysUseCurrentDate": false + }, + { + "name": "image", + "label": "Image", + "type": "media", + "value": "", + "defaultValue": "" + }, + { + "name": "categories", + "label": "Categories", + "type": "Array", + "value": [], + "defaultValue": "" + }, + { + "name": "author", + "label": "Author", + "type": "string", + "value": "", + "defaultValue": "" + }, + { + "name": "tags", + "label": "Tags", + "type": "Array", + "value": [], + "defaultValue": "" + }, + { + "name": "draft", + "label": "Draft", + "type": "boolean", + "value": false, + "defaultValue": "" + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 858086e..582fc0c 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astroplate", - "version": "5.8.2", + "version": "5.9.0", "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT",