Skip to content

Commit

Permalink
Move posts out of src
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidoo committed Dec 14, 2024
1 parent 1d5278e commit 8230e39
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cassidoo/blahg",
"version": "0.0.1",
"version": "0.0.5",
"private": true,
"scripts": {
"dev": "npx tinacms dev -c 'astro dev'",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/content.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineCollection, z } from "astro:content";
import { glob } from "astro/loaders";

const posts = defineCollection({
loader: glob({ pattern: "*.md", base: "./src/posts" }),
loader: glob({ pattern: "*.md", base: "./posts" }),
schema: z.object({
title: z.string(),
slug: z.string(),
Expand Down
2 changes: 1 addition & 1 deletion tina/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
{
name: "post",
label: "Posts",
path: "src/posts",
path: "posts",
defaultItem: () => ({
title: "New Post",
added: new Date(),
Expand Down
2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.

0 comments on commit 8230e39

Please sign in to comment.