From 0d47f204d5eefad7ff9b7293cc1b3056effe43ad Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Thu, 02 Nov 2023 06:30:28 +0000
Subject: [PATCH] update tina cms config

---
 exampleSite/tina/config.js |   31 ++++++++++++++++++++++++++-----
 1 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/exampleSite/tina/config.ts b/exampleSite/tina/config.js
similarity index 78%
rename from exampleSite/tina/config.ts
rename to exampleSite/tina/config.js
index 70e1456..e5f6866 100644
--- a/exampleSite/tina/config.ts
+++ b/exampleSite/tina/config.js
@@ -10,12 +10,12 @@
 
   build: {
     outputFolder: "admin",
-    publicFolder: "exampleSite/static",
+    publicFolder: "static",
   },
   media: {
     tina: {
       mediaRoot: "images",
-      publicFolder: "exampleSite/static",
+      publicFolder: "static",
     },
   },
   schema: {
@@ -23,7 +23,10 @@
       {
         name: "docs",
         label: "Docs",
-        path: "exampleSite/content/docs",
+        path: "content/docs",
+        frontmatterFormat: "toml",
+        frontmatterDelimiters: "+++",
+        format: "md",
         fields: [
           {
             type: "string",
@@ -53,7 +56,10 @@
       {
         name: "post",
         label: "Posts",
-        path: "exampleSite/content/posts",
+        path: "content/blog",
+        frontmatterFormat: "toml",
+        frontmatterDelimiters: "+++",
+        format: "md",
         fields: [
           {
             type: "string",
@@ -68,6 +74,18 @@
             label: "Author",
           },
           {
+            type: "string",
+            name: "categories",
+            label: "Categories",
+            list: true
+          },
+          {
+            type: "string",
+            name: "tags",
+            label: "Tags",
+            list: true
+          },
+          {
             type: "datetime",
             name: "date",
             label: "Date",
@@ -88,7 +106,10 @@
       {
         name: "tutorials",
         label: "Tutorials",
-        path: "exampleSite/content/tutorials",
+        path: "content/tutorials",
+        frontmatterFormat: "toml",
+        frontmatterDelimiters: "+++",
+        format: "md",
         fields: [
           {
             type: "string",

--
Gitblit v1.10.0