phase 1-2 done

This commit is contained in:
Ali Taghavi
2026-04-24 03:42:34 +03:30
commit 95a546df11
83 changed files with 17168 additions and 0 deletions

12
sanity/schemas/tag.ts Normal file
View File

@@ -0,0 +1,12 @@
import { defineField, defineType } from "sanity";
export const tag = defineType({
name: "tag",
title: "Tag",
type: "document",
fields: [
defineField({ name: "title", title: "عنوان", type: "string", validation: (r) => r.required() }),
defineField({ name: "slug", title: "Slug", type: "slug", options: { source: "title" }, validation: (r) => r.required() }),
],
preview: { select: { title: "title" } },
});