Move posts out of src

This commit is contained in:
Cassidy Williams
2024-12-14 10:26:22 -06:00
parent 1d5278e6a2
commit 8230e397ba
7 changed files with 6 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@cassidoo/blahg", "name": "@cassidoo/blahg",
"version": "0.0.1", "version": "0.0.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@cassidoo/blahg", "name": "@cassidoo/blahg",
"version": "0.0.1", "version": "0.0.5",
"dependencies": { "dependencies": {
"@tinacms/cli": "^1.7.0", "@tinacms/cli": "^1.7.0",
"tinacms": "^2.5.2" "tinacms": "^2.5.2"

View File

@@ -1,6 +1,6 @@
{ {
"name": "@cassidoo/blahg", "name": "@cassidoo/blahg",
"version": "0.0.1", "version": "0.0.5",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "npx tinacms dev -c 'astro dev'", "dev": "npx tinacms dev -c 'astro dev'",

View File

@@ -3,7 +3,7 @@ import { defineCollection, z } from "astro:content";
import { glob } from "astro/loaders"; import { glob } from "astro/loaders";
const posts = defineCollection({ const posts = defineCollection({
loader: glob({ pattern: "*.md", base: "./src/posts" }), loader: glob({ pattern: "*.md", base: "./posts" }),
schema: z.object({ schema: z.object({
title: z.string(), title: z.string(),
slug: z.string(), slug: z.string(),

View File

@@ -23,7 +23,7 @@ export default defineConfig({
{ {
name: "post", name: "post",
label: "Posts", label: "Posts",
path: "src/posts", path: "posts",
defaultItem: () => ({ defaultItem: () => ({
title: "New Post", title: "New Post",
added: new Date(), added: new Date(),

File diff suppressed because one or more lines are too long