added Tina CMS
This commit is contained in:
@@ -1,2 +1,4 @@
|
|||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
node_modules
|
||||||
Generated
+12557
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "blog",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "## What This repository is where the blog is stored. Features of using gitlab: - version control - CI/CD pipelines - gitlab container image repository",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"@tinacms/cli": "^1.5.31",
|
||||||
|
"tinacms": "^1.5.22"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
index.html
|
||||||
|
assets/
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
__generated__
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
import { defineConfig } from "tinacms";
|
||||||
|
|
||||||
|
// Your hosting provider likely exposes this as an environment variable
|
||||||
|
const branch = process.env.HEAD || process.env.VERCEL_GIT_COMMIT_REF || "main";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
branch,
|
||||||
|
clientId: null, // Get this from tina.io
|
||||||
|
token: null, // Get this from tina.io
|
||||||
|
|
||||||
|
build: {
|
||||||
|
outputFolder: "admin",
|
||||||
|
publicFolder: "static",
|
||||||
|
},
|
||||||
|
media: {
|
||||||
|
tina: {
|
||||||
|
mediaRoot: "",
|
||||||
|
publicFolder: "static",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
schema: {
|
||||||
|
collections: [
|
||||||
|
{
|
||||||
|
name: "post",
|
||||||
|
label: "Posts",
|
||||||
|
path: "content/posts",
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
type: "string",
|
||||||
|
name: "title",
|
||||||
|
label: "Title",
|
||||||
|
isTitle: true,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "rich-text",
|
||||||
|
name: "body",
|
||||||
|
label: "Body",
|
||||||
|
isBody: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
});
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user