From 435f1a7a2f2c3ec6924e3ec2c726c23d5453cc25 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 02 Nov 2025 15:29:34 +0000
Subject: [PATCH] expose more content to cms

---
 exampleSite/tina/collections/config.ts |   97 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 97 insertions(+), 0 deletions(-)

diff --git a/exampleSite/tina/collections/config.ts b/exampleSite/tina/collections/config.ts
index e69de29..3dcd79e 100644
--- a/exampleSite/tina/collections/config.ts
+++ b/exampleSite/tina/collections/config.ts
@@ -0,0 +1,97 @@
+import { Collection } from "tinacms";
+
+const Config: Collection = {
+  name: "config",
+  label: "Settings",
+  path: "config/_default",
+  format: "toml",
+  ui: {
+    allowedActions: {
+      create: false,
+      delete: false,
+    }
+  },
+  match: {
+    include: "*hugo*",
+  },
+  fields: [
+    {
+      type: "string",
+      name: "baseURL",
+      label: "Homepage",
+      description: "e.g https://example.com/"
+    },
+    {
+      type: "string",
+      name: "title",
+      label: "Site Title"
+    },
+    {
+      type: "string",
+      name: "theme",
+      label: "Theme / Template Name",
+      list: true,
+      description: "references theme as module"
+    },
+    {
+      type: "boolean",
+      name: "enableRobotsTXT",
+      label: "Enable Robots Txt"
+    },
+    {
+      type: "boolean",
+      name: "enableGitInfo",
+      label: "Enable Git",
+      description: "Helps provide more content metadata"
+    },
+    {
+      type: "object",
+      name: "pagination",
+      label: "Pagination Settings",
+      fields: [
+        {
+          type: "boolean",
+          name: "disableAliases",
+          label: "Disable aliases",
+          description: "https://gohugo.io/configuration/pagination/#disablealiases"
+        },
+        {
+          type: "number",
+          name: "pagerSize",
+          label: "Items per page",
+          // description: "defaults to 10",
+        },
+        {
+          type: "string",
+          name: "path",
+          label: "Path",
+          description: "https://gohugo.io/configuration/pagination/#path"
+        }
+      ]
+    },
+    {
+      type: "string",
+      name: "disableKinds",
+      label: "Disable Kinds",
+      list: true,
+      description: "https://gohugo.io/configuration/all/#disablekinds"
+    },
+    {
+      type: "object",
+      name: "outputs",
+      label: "Outputs",
+      description: "https://gohugo.io/configuration/outputs/#outputs-per-page-kind",
+      fields: [
+        {
+          type: "string",
+          name: "home",
+          label: "Home",
+          description: "https://gohugo.io/configuration/outputs/#outputs-per-page-kind",
+          list: true
+        }
+      ]
+    }
+  ]
+}
+
+export default Config;

--
Gitblit v1.10.0