import type { GlobalConfig } from "payload";

export const SEO: GlobalConfig = {
  slug: "seo",
  access: { read: () => true },
  admin: { group: "Site" },
  fields: [
    { name: "siteName", type: "text", defaultValue: "Jason Woltje" },
    { name: "defaultTitle", type: "text", defaultValue: "Jason Woltje" },
    { name: "titleTemplate", type: "text", defaultValue: "%s — Jason Woltje" },
    {
      name: "defaultDescription",
      type: "textarea",
      defaultValue:
        "A multidisciplinary architect of digital ecosystems. Engineering growth through technological mastery and strategic leadership.",
    },
    { name: "defaultOgImage", type: "upload", relationTo: "media" },
    { name: "twitterHandle", type: "text" },
    {
      name: "jsonLdPerson",
      type: "json",
      admin: {
        description:
          "Schema.org Person JSON-LD. Injected verbatim into the home page <head>.",
      },
    },
  ],
};
