[{"data":1,"prerenderedAt":3854},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-content-modeling-presets-pages":478,"-docs-core-content-modeling-presets-pages-surround":3849},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":130,"body":480,"description":3843,"extension":3844,"links":3845,"meta":3846,"navigation":571,"path":131,"seo":3847,"stem":132,"__hash__":3848},"docs\u002Fdocs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages.md",{"type":481,"value":482,"toc":3829},"minimark",[483,492,497,834,837,906,911,922,2175,2182,2185,2188,2274,2284,2288,2314,2388,2392,2408,2494,2505,2555,2558,2577,2580,2688,2694,2844,2858,2862,2907,2922,2926,2940,3159,3171,3173,3179,3260,3414,3421,3482,3486,3492,3816,3825],[484,485,486,487,491],"p",{},"If you're building a website and need pages that can nest, you usually need the same few elements. Slug, seo, title and so on. ",[488,489,490],"code",{},"pagesPreset()"," is more or less a block-based shortcut with sensible defaults. Each page stores its full path, so a read by URL is a plain filter.",[493,494,496],"h2",{"id":495},"example","Example",[498,499,505],"pre",{"className":500,"code":501,"filename":502,"language":503,"meta":504,"style":504},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineCms } from \"tenoncms\";\nimport { pagesPreset } from \"tenoncms\u002Fpresets\";\n\nexport default defineCms({\n  \u002F\u002F ...\n  presets: [\n    pagesPreset({\n      seo: true,\n      blocks: {\n        hero: {\n          label: \"Hero\",\n          fields: { title: { type: \"text\", required: true }, image: { type: \"image\" } },\n        },\n        text: { label: \"Text\", fields: { body: { type: \"richtext\" } } },\n      },\n    }),\n  ],\n});\n","tenon.config.ts","ts","",[488,506,507,543,566,573,591,598,611,621,636,647,657,674,739,745,799,805,816,824],{"__ignoreMap":504},[508,509,512,516,520,524,527,530,533,537,540],"span",{"class":510,"line":511},"line",1,[508,513,515],{"class":514},"s7zQu","import",[508,517,519],{"class":518},"sMK4o"," {",[508,521,523],{"class":522},"sTEyZ"," defineCms",[508,525,526],{"class":518}," }",[508,528,529],{"class":514}," from",[508,531,532],{"class":518}," \"",[508,534,536],{"class":535},"sfazB","tenoncms",[508,538,539],{"class":518},"\"",[508,541,542],{"class":518},";\n",[508,544,546,548,550,553,555,557,559,562,564],{"class":510,"line":545},2,[508,547,515],{"class":514},[508,549,519],{"class":518},[508,551,552],{"class":522}," pagesPreset",[508,554,526],{"class":518},[508,556,529],{"class":514},[508,558,532],{"class":518},[508,560,561],{"class":535},"tenoncms\u002Fpresets",[508,563,539],{"class":518},[508,565,542],{"class":518},[508,567,569],{"class":510,"line":568},3,[508,570,572],{"emptyLinePlaceholder":571},true,"\n",[508,574,576,579,582,585,588],{"class":510,"line":575},4,[508,577,578],{"class":514},"export",[508,580,581],{"class":514}," default",[508,583,523],{"class":584},"s2Zo4",[508,586,587],{"class":522},"(",[508,589,590],{"class":518},"{\n",[508,592,594],{"class":510,"line":593},5,[508,595,597],{"class":596},"sHwdD","  \u002F\u002F ...\n",[508,599,601,605,608],{"class":510,"line":600},6,[508,602,604],{"class":603},"swJcz","  presets",[508,606,607],{"class":518},":",[508,609,610],{"class":522}," [\n",[508,612,614,617,619],{"class":510,"line":613},7,[508,615,616],{"class":584},"    pagesPreset",[508,618,587],{"class":522},[508,620,590],{"class":518},[508,622,624,627,629,633],{"class":510,"line":623},8,[508,625,626],{"class":603},"      seo",[508,628,607],{"class":518},[508,630,632],{"class":631},"sfNiH"," true",[508,634,635],{"class":518},",\n",[508,637,639,642,644],{"class":510,"line":638},9,[508,640,641],{"class":603},"      blocks",[508,643,607],{"class":518},[508,645,646],{"class":518}," {\n",[508,648,650,653,655],{"class":510,"line":649},10,[508,651,652],{"class":603},"        hero",[508,654,607],{"class":518},[508,656,646],{"class":518},[508,658,660,663,665,667,670,672],{"class":510,"line":659},11,[508,661,662],{"class":603},"          label",[508,664,607],{"class":518},[508,666,532],{"class":518},[508,668,669],{"class":535},"Hero",[508,671,539],{"class":518},[508,673,635],{"class":518},[508,675,677,680,682,684,687,689,691,694,696,698,701,703,706,709,711,713,716,719,721,723,725,727,729,732,734,736],{"class":510,"line":676},12,[508,678,679],{"class":603},"          fields",[508,681,607],{"class":518},[508,683,519],{"class":518},[508,685,686],{"class":603}," title",[508,688,607],{"class":518},[508,690,519],{"class":518},[508,692,693],{"class":603}," type",[508,695,607],{"class":518},[508,697,532],{"class":518},[508,699,700],{"class":535},"text",[508,702,539],{"class":518},[508,704,705],{"class":518},",",[508,707,708],{"class":603}," required",[508,710,607],{"class":518},[508,712,632],{"class":631},[508,714,715],{"class":518}," },",[508,717,718],{"class":603}," image",[508,720,607],{"class":518},[508,722,519],{"class":518},[508,724,693],{"class":603},[508,726,607],{"class":518},[508,728,532],{"class":518},[508,730,731],{"class":535},"image",[508,733,539],{"class":518},[508,735,526],{"class":518},[508,737,738],{"class":518}," },\n",[508,740,742],{"class":510,"line":741},13,[508,743,744],{"class":518},"        },\n",[508,746,748,751,753,755,758,760,762,764,766,768,771,773,775,778,780,782,784,786,788,791,793,795,797],{"class":510,"line":747},14,[508,749,750],{"class":603},"        text",[508,752,607],{"class":518},[508,754,519],{"class":518},[508,756,757],{"class":603}," label",[508,759,607],{"class":518},[508,761,532],{"class":518},[508,763,108],{"class":535},[508,765,539],{"class":518},[508,767,705],{"class":518},[508,769,770],{"class":603}," fields",[508,772,607],{"class":518},[508,774,519],{"class":518},[508,776,777],{"class":603}," body",[508,779,607],{"class":518},[508,781,519],{"class":518},[508,783,693],{"class":603},[508,785,607],{"class":518},[508,787,532],{"class":518},[508,789,790],{"class":535},"richtext",[508,792,539],{"class":518},[508,794,526],{"class":518},[508,796,526],{"class":518},[508,798,738],{"class":518},[508,800,802],{"class":510,"line":801},15,[508,803,804],{"class":518},"      },\n",[508,806,808,811,814],{"class":510,"line":807},16,[508,809,810],{"class":518},"    }",[508,812,813],{"class":522},")",[508,815,635],{"class":518},[508,817,819,822],{"class":510,"line":818},17,[508,820,821],{"class":522},"  ]",[508,823,635],{"class":518},[508,825,827,830,832],{"class":510,"line":826},18,[508,828,829],{"class":518},"}",[508,831,813],{"class":522},[508,833,542],{"class":518},[484,835,836],{},"Find a page by its URL:",[498,838,840],{"className":500,"code":839,"language":503,"meta":504,"style":504},"const page = await cms.findOne(\"pages\", { where: { path: \"\u002Fabout\u002Fteam\" } });\n",[488,841,842],{"__ignoreMap":504},[508,843,844,848,851,854,857,860,863,866,868,870,873,875,877,879,882,884,886,889,891,893,896,898,900,902,904],{"class":510,"line":511},[508,845,847],{"class":846},"spNyl","const",[508,849,850],{"class":522}," page ",[508,852,853],{"class":518},"=",[508,855,856],{"class":514}," await",[508,858,859],{"class":522}," cms",[508,861,862],{"class":518},".",[508,864,865],{"class":584},"findOne",[508,867,587],{"class":522},[508,869,539],{"class":518},[508,871,872],{"class":535},"pages",[508,874,539],{"class":518},[508,876,705],{"class":518},[508,878,519],{"class":518},[508,880,881],{"class":603}," where",[508,883,607],{"class":518},[508,885,519],{"class":518},[508,887,888],{"class":603}," path",[508,890,607],{"class":518},[508,892,532],{"class":518},[508,894,895],{"class":535},"\u002Fabout\u002Fteam",[508,897,539],{"class":518},[508,899,526],{"class":518},[508,901,526],{"class":518},[508,903,813],{"class":522},[508,905,542],{"class":518},[907,908,910],"h3",{"id":909},"render-it","Render it",[484,912,913,914,917,918,921],{},"Render all pages with one catch-all route. Your other routes, like ",[488,915,916],{},"\u002F"," or ",[488,919,920],{},"\u002Fposts\u002F...",", win over it.",[923,924,926,1267,1627],"code-group",{"sync":925},"framework",[498,927,931],{"className":928,"code":929,"filename":364,"language":930,"meta":504,"style":504},"language-astro shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","---\n\u002F\u002F src\u002Fpages\u002F[...path].astro\nimport { Blocks } from \"tenoncms\u002Fastro\u002Fcomponents\";\nimport Hero from \"..\u002Fblocks\u002FHero.astro\";\nimport Text from \"..\u002Fblocks\u002FText.astro\";\n\nexport const prerender = false;\n\nconst path = `\u002F${Astro.params.path ?? \"\"}`;\nconst page = await Astro.locals.tenon.findOne(\"pages\", { where: { path } });\nif (!page) return new Response(null, { status: 404 });\n---\n\n\u003Cmain>\n  \u003Ch1>{page.title}\u003C\u002Fh1>\n  \u003CBlocks blocks={page.content} components={{ hero: Hero, text: Text }} \u002F>\n\u003C\u002Fmain>\n","astro",[488,932,933,938,943,965,984,1002,1006,1023,1027,1064,1119,1164,1168,1172,1183,1209,1258],{"__ignoreMap":504},[508,934,935],{"class":510,"line":511},[508,936,937],{"class":596},"---\n",[508,939,940],{"class":510,"line":545},[508,941,942],{"class":596},"\u002F\u002F src\u002Fpages\u002F[...path].astro\n",[508,944,945,947,949,952,954,956,958,961,963],{"class":510,"line":568},[508,946,515],{"class":514},[508,948,519],{"class":518},[508,950,951],{"class":522}," Blocks",[508,953,526],{"class":518},[508,955,529],{"class":514},[508,957,532],{"class":518},[508,959,960],{"class":535},"tenoncms\u002Fastro\u002Fcomponents",[508,962,539],{"class":518},[508,964,542],{"class":518},[508,966,967,969,972,975,977,980,982],{"class":510,"line":575},[508,968,515],{"class":514},[508,970,971],{"class":522}," Hero ",[508,973,974],{"class":514},"from",[508,976,532],{"class":518},[508,978,979],{"class":535},"..\u002Fblocks\u002FHero.astro",[508,981,539],{"class":518},[508,983,542],{"class":518},[508,985,986,988,991,993,995,998,1000],{"class":510,"line":593},[508,987,515],{"class":514},[508,989,990],{"class":522}," Text ",[508,992,974],{"class":514},[508,994,532],{"class":518},[508,996,997],{"class":535},"..\u002Fblocks\u002FText.astro",[508,999,539],{"class":518},[508,1001,542],{"class":518},[508,1003,1004],{"class":510,"line":600},[508,1005,572],{"emptyLinePlaceholder":571},[508,1007,1008,1010,1013,1016,1018,1021],{"class":510,"line":613},[508,1009,578],{"class":514},[508,1011,1012],{"class":846}," const",[508,1014,1015],{"class":522}," prerender ",[508,1017,853],{"class":518},[508,1019,1020],{"class":631}," false",[508,1022,542],{"class":518},[508,1024,1025],{"class":510,"line":623},[508,1026,572],{"emptyLinePlaceholder":571},[508,1028,1029,1031,1034,1036,1039,1041,1044,1046,1048,1051,1053,1056,1059,1062],{"class":510,"line":638},[508,1030,847],{"class":846},[508,1032,1033],{"class":522}," path ",[508,1035,853],{"class":518},[508,1037,1038],{"class":518}," `",[508,1040,916],{"class":535},[508,1042,1043],{"class":518},"${",[508,1045,364],{"class":522},[508,1047,862],{"class":518},[508,1049,1050],{"class":522},"params",[508,1052,862],{"class":518},[508,1054,1055],{"class":522},"path ",[508,1057,1058],{"class":518},"??",[508,1060,1061],{"class":518}," \"\"}`",[508,1063,542],{"class":518},[508,1065,1066,1068,1070,1072,1074,1077,1079,1082,1084,1087,1089,1091,1093,1095,1097,1099,1101,1103,1105,1107,1109,1111,1113,1115,1117],{"class":510,"line":649},[508,1067,847],{"class":846},[508,1069,850],{"class":522},[508,1071,853],{"class":518},[508,1073,856],{"class":514},[508,1075,1076],{"class":522}," Astro",[508,1078,862],{"class":518},[508,1080,1081],{"class":522},"locals",[508,1083,862],{"class":518},[508,1085,1086],{"class":522},"tenon",[508,1088,862],{"class":518},[508,1090,865],{"class":584},[508,1092,587],{"class":522},[508,1094,539],{"class":518},[508,1096,872],{"class":535},[508,1098,539],{"class":518},[508,1100,705],{"class":518},[508,1102,519],{"class":518},[508,1104,881],{"class":603},[508,1106,607],{"class":518},[508,1108,519],{"class":518},[508,1110,1033],{"class":522},[508,1112,829],{"class":518},[508,1114,526],{"class":518},[508,1116,813],{"class":522},[508,1118,542],{"class":518},[508,1120,1121,1124,1127,1130,1133,1136,1139,1142,1144,1147,1149,1152,1154,1158,1160,1162],{"class":510,"line":659},[508,1122,1123],{"class":514},"if",[508,1125,1126],{"class":522}," (",[508,1128,1129],{"class":518},"!",[508,1131,1132],{"class":522},"page) ",[508,1134,1135],{"class":514},"return",[508,1137,1138],{"class":518}," new",[508,1140,1141],{"class":584}," Response",[508,1143,587],{"class":522},[508,1145,1146],{"class":518},"null,",[508,1148,519],{"class":518},[508,1150,1151],{"class":603}," status",[508,1153,607],{"class":518},[508,1155,1157],{"class":1156},"sbssI"," 404",[508,1159,526],{"class":518},[508,1161,813],{"class":522},[508,1163,542],{"class":518},[508,1165,1166],{"class":510,"line":676},[508,1167,937],{"class":596},[508,1169,1170],{"class":510,"line":741},[508,1171,572],{"emptyLinePlaceholder":571},[508,1173,1174,1177,1180],{"class":510,"line":747},[508,1175,1176],{"class":518},"\u003C",[508,1178,1179],{"class":603},"main",[508,1181,1182],{"class":518},">\n",[508,1184,1185,1188,1191,1194,1197,1199,1202,1205,1207],{"class":510,"line":801},[508,1186,1187],{"class":518},"  \u003C",[508,1189,1190],{"class":603},"h1",[508,1192,1193],{"class":518},">{",[508,1195,1196],{"class":522},"page",[508,1198,862],{"class":518},[508,1200,1201],{"class":522},"title",[508,1203,1204],{"class":518},"}\u003C\u002F",[508,1206,1190],{"class":603},[508,1208,1182],{"class":518},[508,1210,1211,1213,1216,1219,1222,1224,1226,1229,1232,1235,1238,1241,1243,1246,1248,1251,1253,1255],{"class":510,"line":807},[508,1212,1187],{"class":518},[508,1214,56],{"class":1215},"sBMFI",[508,1217,1218],{"class":846}," blocks",[508,1220,1221],{"class":518},"={",[508,1223,1196],{"class":522},[508,1225,862],{"class":518},[508,1227,1228],{"class":522},"content",[508,1230,1231],{"class":518},"} ",[508,1233,1234],{"class":846},"components",[508,1236,1237],{"class":518},"={{",[508,1239,1240],{"class":603}," hero",[508,1242,607],{"class":518},[508,1244,1245],{"class":522}," Hero",[508,1247,705],{"class":518},[508,1249,1250],{"class":603}," text",[508,1252,607],{"class":518},[508,1254,990],{"class":522},[508,1256,1257],{"class":518},"}} \u002F>\n",[508,1259,1260,1263,1265],{"class":510,"line":818},[508,1261,1262],{"class":518},"\u003C\u002F",[508,1264,1179],{"class":603},[508,1266,1182],{"class":518},[498,1268,1272],{"className":1269,"code":1270,"filename":368,"language":1271,"meta":504,"style":504},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C!-- app\u002Fpages\u002F[...path].vue -->\n\u003Cscript setup lang=\"ts\">\nimport Hero from \"~\u002Fcomponents\u002Fblocks\u002FHero.vue\";\nimport Text from \"~\u002Fcomponents\u002Fblocks\u002FText.vue\";\n\nconst route = useRoute();\nconst { data: page } = await useTenon().findOne(\"pages\", () => ({\n  where: { path: route.path },\n}));\nif (!page.value) throw createError({ statusCode: 404, statusMessage: \"Page not found\" });\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cmain v-if=\"page\">\n    \u003Ch1>{{ page.title }}\u003C\u002Fh1>\n    \u003CTenonBlocks :blocks=\"page.content\" :components=\"{ hero: Hero, text: Text }\" \u002F>\n  \u003C\u002Fmain>\n\u003C\u002Ftemplate>\n","vue",[488,1273,1274,1279,1302,1319,1336,1340,1357,1406,1429,1438,1491,1499,1503,1512,1531,1550,1610,1619],{"__ignoreMap":504},[508,1275,1276],{"class":510,"line":511},[508,1277,1278],{"class":596},"\u003C!-- app\u002Fpages\u002F[...path].vue -->\n",[508,1280,1281,1283,1286,1289,1292,1294,1296,1298,1300],{"class":510,"line":545},[508,1282,1176],{"class":518},[508,1284,1285],{"class":603},"script",[508,1287,1288],{"class":846}," setup",[508,1290,1291],{"class":846}," lang",[508,1293,853],{"class":518},[508,1295,539],{"class":518},[508,1297,503],{"class":535},[508,1299,539],{"class":518},[508,1301,1182],{"class":518},[508,1303,1304,1306,1308,1310,1312,1315,1317],{"class":510,"line":568},[508,1305,515],{"class":514},[508,1307,971],{"class":522},[508,1309,974],{"class":514},[508,1311,532],{"class":518},[508,1313,1314],{"class":535},"~\u002Fcomponents\u002Fblocks\u002FHero.vue",[508,1316,539],{"class":518},[508,1318,542],{"class":518},[508,1320,1321,1323,1325,1327,1329,1332,1334],{"class":510,"line":575},[508,1322,515],{"class":514},[508,1324,990],{"class":522},[508,1326,974],{"class":514},[508,1328,532],{"class":518},[508,1330,1331],{"class":535},"~\u002Fcomponents\u002Fblocks\u002FText.vue",[508,1333,539],{"class":518},[508,1335,542],{"class":518},[508,1337,1338],{"class":510,"line":593},[508,1339,572],{"emptyLinePlaceholder":571},[508,1341,1342,1344,1347,1349,1352,1355],{"class":510,"line":600},[508,1343,847],{"class":846},[508,1345,1346],{"class":522}," route ",[508,1348,853],{"class":518},[508,1350,1351],{"class":584}," useRoute",[508,1353,1354],{"class":522},"()",[508,1356,542],{"class":518},[508,1358,1359,1361,1363,1366,1368,1370,1372,1375,1377,1380,1382,1384,1386,1388,1390,1392,1394,1396,1399,1402,1404],{"class":510,"line":613},[508,1360,847],{"class":846},[508,1362,519],{"class":518},[508,1364,1365],{"class":603}," data",[508,1367,607],{"class":518},[508,1369,850],{"class":522},[508,1371,829],{"class":518},[508,1373,1374],{"class":518}," =",[508,1376,856],{"class":514},[508,1378,1379],{"class":584}," useTenon",[508,1381,1354],{"class":522},[508,1383,862],{"class":518},[508,1385,865],{"class":584},[508,1387,587],{"class":522},[508,1389,539],{"class":518},[508,1391,872],{"class":535},[508,1393,539],{"class":518},[508,1395,705],{"class":518},[508,1397,1398],{"class":518}," ()",[508,1400,1401],{"class":846}," =>",[508,1403,1126],{"class":522},[508,1405,590],{"class":518},[508,1407,1408,1411,1413,1415,1417,1419,1422,1424,1426],{"class":510,"line":623},[508,1409,1410],{"class":603},"  where",[508,1412,607],{"class":518},[508,1414,519],{"class":518},[508,1416,888],{"class":603},[508,1418,607],{"class":518},[508,1420,1421],{"class":522}," route",[508,1423,862],{"class":518},[508,1425,1055],{"class":522},[508,1427,1428],{"class":518},"},\n",[508,1430,1431,1433,1436],{"class":510,"line":638},[508,1432,829],{"class":518},[508,1434,1435],{"class":522},"))",[508,1437,542],{"class":518},[508,1439,1440,1442,1444,1446,1448,1450,1453,1456,1459,1461,1464,1467,1469,1471,1473,1476,1478,1480,1483,1485,1487,1489],{"class":510,"line":649},[508,1441,1123],{"class":514},[508,1443,1126],{"class":522},[508,1445,1129],{"class":518},[508,1447,1196],{"class":522},[508,1449,862],{"class":518},[508,1451,1452],{"class":522},"value) ",[508,1454,1455],{"class":514},"throw",[508,1457,1458],{"class":584}," createError",[508,1460,587],{"class":522},[508,1462,1463],{"class":518},"{",[508,1465,1466],{"class":603}," statusCode",[508,1468,607],{"class":518},[508,1470,1157],{"class":1156},[508,1472,705],{"class":518},[508,1474,1475],{"class":603}," statusMessage",[508,1477,607],{"class":518},[508,1479,532],{"class":518},[508,1481,1482],{"class":535},"Page not found",[508,1484,539],{"class":518},[508,1486,526],{"class":518},[508,1488,813],{"class":522},[508,1490,542],{"class":518},[508,1492,1493,1495,1497],{"class":510,"line":659},[508,1494,1262],{"class":518},[508,1496,1285],{"class":603},[508,1498,1182],{"class":518},[508,1500,1501],{"class":510,"line":676},[508,1502,572],{"emptyLinePlaceholder":571},[508,1504,1505,1507,1510],{"class":510,"line":741},[508,1506,1176],{"class":518},[508,1508,1509],{"class":603},"template",[508,1511,1182],{"class":518},[508,1513,1514,1516,1518,1521,1523,1525,1527,1529],{"class":510,"line":747},[508,1515,1187],{"class":518},[508,1517,1179],{"class":603},[508,1519,1520],{"class":846}," v-if",[508,1522,853],{"class":518},[508,1524,539],{"class":518},[508,1526,1196],{"class":535},[508,1528,539],{"class":518},[508,1530,1182],{"class":518},[508,1532,1533,1536,1538,1541,1544,1546,1548],{"class":510,"line":801},[508,1534,1535],{"class":518},"    \u003C",[508,1537,1190],{"class":603},[508,1539,1540],{"class":518},">",[508,1542,1543],{"class":522},"{{ page.title }}",[508,1545,1262],{"class":518},[508,1547,1190],{"class":603},[508,1549,1182],{"class":518},[508,1551,1552,1554,1557,1560,1563,1565,1567,1569,1571,1573,1575,1577,1579,1581,1583,1586,1589,1592,1594,1597,1599,1601,1603,1605,1607],{"class":510,"line":807},[508,1553,1535],{"class":518},[508,1555,1556],{"class":603},"TenonBlocks",[508,1558,1559],{"class":518}," :",[508,1561,1562],{"class":846},"blocks",[508,1564,853],{"class":518},[508,1566,539],{"class":518},[508,1568,1196],{"class":522},[508,1570,862],{"class":518},[508,1572,1228],{"class":522},[508,1574,539],{"class":518},[508,1576,1559],{"class":518},[508,1578,1234],{"class":846},[508,1580,853],{"class":518},[508,1582,539],{"class":518},[508,1584,1585],{"class":518},"{ ",[508,1587,1588],{"class":603},"hero",[508,1590,1591],{"class":518},": ",[508,1593,669],{"class":522},[508,1595,1596],{"class":518},", ",[508,1598,700],{"class":603},[508,1600,1591],{"class":518},[508,1602,108],{"class":522},[508,1604,526],{"class":518},[508,1606,539],{"class":518},[508,1608,1609],{"class":518}," \u002F>\n",[508,1611,1612,1615,1617],{"class":510,"line":818},[508,1613,1614],{"class":518},"  \u003C\u002F",[508,1616,1179],{"class":603},[508,1618,1182],{"class":518},[508,1620,1621,1623,1625],{"class":510,"line":826},[508,1622,1262],{"class":518},[508,1624,1509],{"class":603},[508,1626,1182],{"class":518},[498,1628,1632],{"className":1629,"code":1630,"filename":372,"language":1631,"meta":504,"style":504},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F src\u002Froutes\u002F$.tsx\nimport { createFileRoute, notFound } from \"@tanstack\u002Freact-router\";\nimport { createServerFn } from \"@tanstack\u002Freact-start\";\nimport { Blocks } from \"tenoncms\u002Freact\";\nimport cms from \"..\u002F..\u002Ftenon.config\";\nimport { Hero } from \"..\u002Fblocks\u002FHero\";\nimport { Text } from \"..\u002Fblocks\u002FText\";\n\nconst getPage = createServerFn()\n  .validator((path: string) => path)\n  .handler(async ({ data: path }) => {\n    const page = await cms.findOne(\"pages\", { where: { path } });\n    if (!page) throw notFound();\n    return page;\n  });\n\nexport const Route = createFileRoute(\"\u002F$\")({\n  loader: ({ params }) => getPage({ data: `\u002F${params._splat ?? \"\"}` }),\n  component: Page,\n});\n\nfunction Page() {\n  const page = Route.useLoaderData();\n  return (\n    \u003Cmain>\n      \u003Ch1>{page.title}\u003C\u002Fh1>\n      \u003CBlocks blocks={page.content} components={{ hero: Hero, text: Text }} \u002F>\n    \u003C\u002Fmain>\n  );\n}\n","tsx",[488,1633,1634,1639,1666,1688,1709,1727,1748,1770,1774,1788,1816,1844,1890,1912,1921,1930,1934,1961,2011,2024,2033,2038,2050,2072,2081,2090,2112,2151,2161,2169],{"__ignoreMap":504},[508,1635,1636],{"class":510,"line":511},[508,1637,1638],{"class":596},"\u002F\u002F src\u002Froutes\u002F$.tsx\n",[508,1640,1641,1643,1645,1648,1650,1653,1655,1657,1659,1662,1664],{"class":510,"line":545},[508,1642,515],{"class":514},[508,1644,519],{"class":518},[508,1646,1647],{"class":522}," createFileRoute",[508,1649,705],{"class":518},[508,1651,1652],{"class":522}," notFound",[508,1654,526],{"class":518},[508,1656,529],{"class":514},[508,1658,532],{"class":518},[508,1660,1661],{"class":535},"@tanstack\u002Freact-router",[508,1663,539],{"class":518},[508,1665,542],{"class":518},[508,1667,1668,1670,1672,1675,1677,1679,1681,1684,1686],{"class":510,"line":568},[508,1669,515],{"class":514},[508,1671,519],{"class":518},[508,1673,1674],{"class":522}," createServerFn",[508,1676,526],{"class":518},[508,1678,529],{"class":514},[508,1680,532],{"class":518},[508,1682,1683],{"class":535},"@tanstack\u002Freact-start",[508,1685,539],{"class":518},[508,1687,542],{"class":518},[508,1689,1690,1692,1694,1696,1698,1700,1702,1705,1707],{"class":510,"line":575},[508,1691,515],{"class":514},[508,1693,519],{"class":518},[508,1695,951],{"class":522},[508,1697,526],{"class":518},[508,1699,529],{"class":514},[508,1701,532],{"class":518},[508,1703,1704],{"class":535},"tenoncms\u002Freact",[508,1706,539],{"class":518},[508,1708,542],{"class":518},[508,1710,1711,1713,1716,1718,1720,1723,1725],{"class":510,"line":593},[508,1712,515],{"class":514},[508,1714,1715],{"class":522}," cms ",[508,1717,974],{"class":514},[508,1719,532],{"class":518},[508,1721,1722],{"class":535},"..\u002F..\u002Ftenon.config",[508,1724,539],{"class":518},[508,1726,542],{"class":518},[508,1728,1729,1731,1733,1735,1737,1739,1741,1744,1746],{"class":510,"line":600},[508,1730,515],{"class":514},[508,1732,519],{"class":518},[508,1734,1245],{"class":522},[508,1736,526],{"class":518},[508,1738,529],{"class":514},[508,1740,532],{"class":518},[508,1742,1743],{"class":535},"..\u002Fblocks\u002FHero",[508,1745,539],{"class":518},[508,1747,542],{"class":518},[508,1749,1750,1752,1754,1757,1759,1761,1763,1766,1768],{"class":510,"line":613},[508,1751,515],{"class":514},[508,1753,519],{"class":518},[508,1755,1756],{"class":522}," Text",[508,1758,526],{"class":518},[508,1760,529],{"class":514},[508,1762,532],{"class":518},[508,1764,1765],{"class":535},"..\u002Fblocks\u002FText",[508,1767,539],{"class":518},[508,1769,542],{"class":518},[508,1771,1772],{"class":510,"line":623},[508,1773,572],{"emptyLinePlaceholder":571},[508,1775,1776,1778,1781,1783,1785],{"class":510,"line":638},[508,1777,847],{"class":846},[508,1779,1780],{"class":522}," getPage ",[508,1782,853],{"class":518},[508,1784,1674],{"class":584},[508,1786,1787],{"class":522},"()\n",[508,1789,1790,1793,1796,1798,1800,1804,1806,1809,1811,1813],{"class":510,"line":649},[508,1791,1792],{"class":518},"  .",[508,1794,1795],{"class":584},"validator",[508,1797,587],{"class":522},[508,1799,587],{"class":518},[508,1801,1803],{"class":1802},"sHdIc","path",[508,1805,607],{"class":518},[508,1807,1808],{"class":1215}," string",[508,1810,813],{"class":518},[508,1812,1401],{"class":846},[508,1814,1815],{"class":522}," path)\n",[508,1817,1818,1820,1823,1825,1828,1831,1833,1835,1837,1840,1842],{"class":510,"line":659},[508,1819,1792],{"class":518},[508,1821,1822],{"class":584},"handler",[508,1824,587],{"class":522},[508,1826,1827],{"class":846},"async",[508,1829,1830],{"class":518}," ({",[508,1832,1365],{"class":603},[508,1834,607],{"class":518},[508,1836,888],{"class":1802},[508,1838,1839],{"class":518}," })",[508,1841,1401],{"class":846},[508,1843,646],{"class":518},[508,1845,1846,1849,1852,1854,1856,1858,1860,1862,1864,1866,1868,1870,1872,1874,1876,1878,1880,1882,1884,1886,1888],{"class":510,"line":676},[508,1847,1848],{"class":846},"    const",[508,1850,1851],{"class":522}," page",[508,1853,1374],{"class":518},[508,1855,856],{"class":514},[508,1857,859],{"class":522},[508,1859,862],{"class":518},[508,1861,865],{"class":584},[508,1863,587],{"class":603},[508,1865,539],{"class":518},[508,1867,872],{"class":535},[508,1869,539],{"class":518},[508,1871,705],{"class":518},[508,1873,519],{"class":518},[508,1875,881],{"class":603},[508,1877,607],{"class":518},[508,1879,519],{"class":518},[508,1881,888],{"class":522},[508,1883,526],{"class":518},[508,1885,526],{"class":518},[508,1887,813],{"class":603},[508,1889,542],{"class":518},[508,1891,1892,1895,1897,1899,1901,1904,1906,1908,1910],{"class":510,"line":741},[508,1893,1894],{"class":514},"    if",[508,1896,1126],{"class":603},[508,1898,1129],{"class":518},[508,1900,1196],{"class":522},[508,1902,1903],{"class":603},") ",[508,1905,1455],{"class":514},[508,1907,1652],{"class":584},[508,1909,1354],{"class":603},[508,1911,542],{"class":518},[508,1913,1914,1917,1919],{"class":510,"line":747},[508,1915,1916],{"class":514},"    return",[508,1918,1851],{"class":522},[508,1920,542],{"class":518},[508,1922,1923,1926,1928],{"class":510,"line":801},[508,1924,1925],{"class":518},"  }",[508,1927,813],{"class":522},[508,1929,542],{"class":518},[508,1931,1932],{"class":510,"line":807},[508,1933,572],{"emptyLinePlaceholder":571},[508,1935,1936,1938,1940,1943,1945,1947,1949,1951,1954,1956,1959],{"class":510,"line":818},[508,1937,578],{"class":514},[508,1939,1012],{"class":846},[508,1941,1942],{"class":522}," Route ",[508,1944,853],{"class":518},[508,1946,1647],{"class":584},[508,1948,587],{"class":522},[508,1950,539],{"class":518},[508,1952,1953],{"class":535},"\u002F$",[508,1955,539],{"class":518},[508,1957,1958],{"class":522},")(",[508,1960,590],{"class":518},[508,1962,1963,1966,1968,1970,1973,1975,1977,1980,1982,1984,1986,1988,1990,1992,1994,1996,1998,2001,2003,2005,2007,2009],{"class":510,"line":826},[508,1964,1965],{"class":584},"  loader",[508,1967,607],{"class":518},[508,1969,1830],{"class":518},[508,1971,1972],{"class":1802}," params",[508,1974,1839],{"class":518},[508,1976,1401],{"class":846},[508,1978,1979],{"class":584}," getPage",[508,1981,587],{"class":522},[508,1983,1463],{"class":518},[508,1985,1365],{"class":603},[508,1987,607],{"class":518},[508,1989,1038],{"class":518},[508,1991,916],{"class":535},[508,1993,1043],{"class":518},[508,1995,1050],{"class":522},[508,1997,862],{"class":518},[508,1999,2000],{"class":522},"_splat ",[508,2002,1058],{"class":518},[508,2004,1061],{"class":518},[508,2006,526],{"class":518},[508,2008,813],{"class":522},[508,2010,635],{"class":518},[508,2012,2014,2017,2019,2022],{"class":510,"line":2013},19,[508,2015,2016],{"class":603},"  component",[508,2018,607],{"class":518},[508,2020,2021],{"class":522}," Page",[508,2023,635],{"class":518},[508,2025,2027,2029,2031],{"class":510,"line":2026},20,[508,2028,829],{"class":518},[508,2030,813],{"class":522},[508,2032,542],{"class":518},[508,2034,2036],{"class":510,"line":2035},21,[508,2037,572],{"emptyLinePlaceholder":571},[508,2039,2041,2044,2046,2048],{"class":510,"line":2040},22,[508,2042,2043],{"class":846},"function",[508,2045,2021],{"class":584},[508,2047,1354],{"class":518},[508,2049,646],{"class":518},[508,2051,2053,2056,2058,2060,2063,2065,2068,2070],{"class":510,"line":2052},23,[508,2054,2055],{"class":846},"  const",[508,2057,1851],{"class":522},[508,2059,1374],{"class":518},[508,2061,2062],{"class":522}," Route",[508,2064,862],{"class":518},[508,2066,2067],{"class":584},"useLoaderData",[508,2069,1354],{"class":603},[508,2071,542],{"class":518},[508,2073,2075,2078],{"class":510,"line":2074},24,[508,2076,2077],{"class":514},"  return",[508,2079,2080],{"class":603}," (\n",[508,2082,2084,2086,2088],{"class":510,"line":2083},25,[508,2085,1535],{"class":518},[508,2087,1179],{"class":603},[508,2089,1182],{"class":518},[508,2091,2093,2096,2098,2100,2102,2104,2106,2108,2110],{"class":510,"line":2092},26,[508,2094,2095],{"class":518},"      \u003C",[508,2097,1190],{"class":603},[508,2099,1193],{"class":518},[508,2101,1196],{"class":522},[508,2103,862],{"class":518},[508,2105,1201],{"class":522},[508,2107,1204],{"class":518},[508,2109,1190],{"class":603},[508,2111,1182],{"class":518},[508,2113,2115,2117,2119,2121,2123,2125,2127,2129,2131,2133,2135,2137,2139,2141,2143,2145,2147,2149],{"class":510,"line":2114},27,[508,2116,2095],{"class":518},[508,2118,56],{"class":1215},[508,2120,1218],{"class":846},[508,2122,1221],{"class":518},[508,2124,1196],{"class":522},[508,2126,862],{"class":518},[508,2128,1228],{"class":522},[508,2130,1231],{"class":518},[508,2132,1234],{"class":846},[508,2134,1237],{"class":518},[508,2136,1240],{"class":603},[508,2138,607],{"class":518},[508,2140,1245],{"class":522},[508,2142,705],{"class":518},[508,2144,1250],{"class":603},[508,2146,607],{"class":518},[508,2148,990],{"class":522},[508,2150,1257],{"class":518},[508,2152,2154,2157,2159],{"class":510,"line":2153},28,[508,2155,2156],{"class":518},"    \u003C\u002F",[508,2158,1179],{"class":603},[508,2160,1182],{"class":518},[508,2162,2164,2167],{"class":510,"line":2163},29,[508,2165,2166],{"class":603},"  )",[508,2168,542],{"class":518},[508,2170,2172],{"class":510,"line":2171},30,[508,2173,2174],{"class":518},"}\n",[484,2176,2177,2178,2181],{},"See ",[2179,2180,180],"a",{"href":181}," for head tags, locales and live preview.",[493,2183,45],{"id":2184},"fields",[484,2186,2187],{},"The collection gets these fields:",[2189,2190,2191,2204],"table",{},[2192,2193,2194],"thead",{},[2195,2196,2197,2201],"tr",{},[2198,2199,2200],"th",{},"Field",[2198,2202,2203],{},"What it is",[2205,2206,2207,2217,2227,2237,2249,2261],"tbody",{},[2195,2208,2209,2214],{},[2210,2211,2212],"td",{},[488,2213,1201],{},[2210,2215,2216],{},"The page title. Required.",[2195,2218,2219,2224],{},[2210,2220,2221],{},[488,2222,2223],{},"slug",[2210,2225,2226],{},"The last part of the URL, filled from the title. Required.",[2195,2228,2229,2234],{},[2210,2230,2231],{},[488,2232,2233],{},"parent",[2210,2235,2236],{},"The page above this one. Editors pick it in front of the slug input.",[2195,2238,2239,2243],{},[2210,2240,2241],{},[488,2242,1803],{},[2210,2244,2245,2246,2248],{},"The full URL, like ",[488,2247,895],{},". Hooks set it. Editors do not see it.",[2195,2250,2251,2255],{},[2210,2252,2253],{},[488,2254,1228],{},[2210,2256,2257,2258,2260],{},"With ",[488,2259,1562],{},": the sections of the page.",[2195,2262,2263,2268],{},[2210,2264,2265],{},[488,2266,2267],{},"seo",[2210,2269,2257,2270,2273],{},[488,2271,2272],{},"seo: true",": SEO title, description, share image and \"hide from search engines\".",[484,2275,2276,2277,2280,2281,862],{},"The collection also has ",[488,2278,2279],{},"permalink: \"{path}\"",", so the sitemap and links know each page's URL, and ",[488,2282,2283],{},"schedule: true",[493,2285,2287],{"id":2286},"how-paths-work","How paths work",[2289,2290,2291,2305,2308,2311],"ul",{},[2292,2293,2294,2295,2298,2299,2301,2302,862],"li",{},"A top-level page with the slug ",[488,2296,2297],{},"index"," has the path ",[488,2300,916],{},". Any other top-level page has ",[488,2303,2304],{},"\u002F\u003Cslug>",[2292,2306,2307],{},"A child page has the path of its parent plus its slug.",[2292,2309,2310],{},"When a page moves or its slug changes, the paths of all pages below it change too.",[2292,2312,2313],{},"Two pages cannot have the same path. A page with children cannot be deleted.",[2189,2315,2316,2329],{},[2192,2317,2318],{},[2195,2319,2320,2323,2326],{},[2198,2321,2322],{},"Page",[2198,2324,2325],{},"Parent",[2198,2327,2328],{},"Path",[2205,2330,2331,2343,2357,2372],{},[2195,2332,2333,2337,2339],{},[2210,2334,2335],{},[488,2336,2297],{},[2210,2338],{},[2210,2340,2341],{},[488,2342,916],{},[2195,2344,2345,2350,2352],{},[2210,2346,2347],{},[488,2348,2349],{},"about",[2210,2351],{},[2210,2353,2354],{},[488,2355,2356],{},"\u002Fabout",[2195,2358,2359,2364,2368],{},[2210,2360,2361],{},[488,2362,2363],{},"team",[2210,2365,2366],{},[488,2367,2349],{},[2210,2369,2370],{},[488,2371,895],{},[2195,2373,2374,2378,2383],{},[2210,2375,2376],{},[488,2377,2363],{},[2210,2379,2380],{},[488,2381,2382],{},"jobs",[2210,2384,2385],{},[488,2386,2387],{},"\u002Fjobs\u002Fteam",[493,2389,2391],{"id":2390},"sections","Sections",[484,2393,2394,2396,2397,2399,2400,2404,2405,607],{},[488,2395,1562],{}," adds a ",[488,2398,1228],{}," field of type ",[2179,2401,2402],{"href":57},[488,2403,1562],{},". Pass the blocks inline, or the names of shared blocks from ",[488,2406,2407],{},"defineCms({ blocks })",[498,2409,2411],{"className":500,"code":2410,"language":503,"meta":504,"style":504},"defineCms({\n  blocks: { hero, text },\n  presets: [pagesPreset({ blocks: [\"hero\", \"text\"] })],\n});\n",[488,2412,2413,2422,2440,2486],{"__ignoreMap":504},[508,2414,2415,2418,2420],{"class":510,"line":511},[508,2416,2417],{"class":584},"defineCms",[508,2419,587],{"class":522},[508,2421,590],{"class":518},[508,2423,2424,2427,2429,2431,2433,2435,2438],{"class":510,"line":545},[508,2425,2426],{"class":603},"  blocks",[508,2428,607],{"class":518},[508,2430,519],{"class":518},[508,2432,1240],{"class":522},[508,2434,705],{"class":518},[508,2436,2437],{"class":522}," text ",[508,2439,1428],{"class":518},[508,2441,2442,2444,2446,2449,2452,2454,2456,2458,2460,2462,2464,2466,2468,2470,2472,2474,2476,2479,2481,2484],{"class":510,"line":568},[508,2443,604],{"class":603},[508,2445,607],{"class":518},[508,2447,2448],{"class":522}," [",[508,2450,2451],{"class":584},"pagesPreset",[508,2453,587],{"class":522},[508,2455,1463],{"class":518},[508,2457,1218],{"class":603},[508,2459,607],{"class":518},[508,2461,2448],{"class":522},[508,2463,539],{"class":518},[508,2465,1588],{"class":535},[508,2467,539],{"class":518},[508,2469,705],{"class":518},[508,2471,532],{"class":518},[508,2473,700],{"class":535},[508,2475,539],{"class":518},[508,2477,2478],{"class":522},"] ",[508,2480,829],{"class":518},[508,2482,2483],{"class":522},")]",[508,2485,635],{"class":518},[508,2487,2488,2490,2492],{"class":510,"line":575},[508,2489,829],{"class":518},[508,2491,813],{"class":522},[508,2493,542],{"class":518},[484,2495,2496,2497,2499,2500,2502,2503,607],{},"Without ",[488,2498,1562],{},", there is no ",[488,2501,1228],{}," field. Add your own with ",[488,2504,2184],{},[498,2506,2508],{"className":500,"code":2507,"language":503,"meta":504,"style":504},"pagesPreset({\n  fields: { body: { type: \"richtext\" } },\n}),\n",[488,2509,2510,2518,2547],{"__ignoreMap":504},[508,2511,2512,2514,2516],{"class":510,"line":511},[508,2513,2451],{"class":584},[508,2515,587],{"class":522},[508,2517,590],{"class":518},[508,2519,2520,2523,2525,2527,2529,2531,2533,2535,2537,2539,2541,2543,2545],{"class":510,"line":545},[508,2521,2522],{"class":603},"  fields",[508,2524,607],{"class":518},[508,2526,519],{"class":518},[508,2528,777],{"class":603},[508,2530,607],{"class":518},[508,2532,519],{"class":518},[508,2534,693],{"class":603},[508,2536,607],{"class":518},[508,2538,532],{"class":518},[508,2540,790],{"class":535},[508,2542,539],{"class":518},[508,2544,526],{"class":518},[508,2546,738],{"class":518},[508,2548,2549,2551,2553],{"class":510,"line":568},[508,2550,829],{"class":518},[508,2552,813],{"class":522},[508,2554,635],{"class":518},[493,2556,2557],{"id":2267},"SEO",[484,2559,2560,2562,2563,2565,2566,2570,2571,2573,2574,862],{},[488,2561,2272],{}," adds the ",[488,2564,2267],{}," group and splits the form into the tabs ",[2567,2568,2569],"strong",{},"Content"," and ",[2567,2572,2557],{},". The group has an image field, so it needs ",[2179,2575,2576],{"href":117},"media",[484,2578,2579],{},"Populate the share image when you read a page:",[498,2581,2583],{"className":500,"code":2582,"language":503,"meta":504,"style":504},"const page = await cms.findOne(\"pages\", {\n  where: { path },\n  populate: { seo: { image: true } },\n});\npage.seo?.title;\npage.seo?.image;\n",[488,2584,2585,2613,2625,2651,2659,2674],{"__ignoreMap":504},[508,2586,2587,2589,2591,2593,2595,2597,2599,2601,2603,2605,2607,2609,2611],{"class":510,"line":511},[508,2588,847],{"class":846},[508,2590,850],{"class":522},[508,2592,853],{"class":518},[508,2594,856],{"class":514},[508,2596,859],{"class":522},[508,2598,862],{"class":518},[508,2600,865],{"class":584},[508,2602,587],{"class":522},[508,2604,539],{"class":518},[508,2606,872],{"class":535},[508,2608,539],{"class":518},[508,2610,705],{"class":518},[508,2612,646],{"class":518},[508,2614,2615,2617,2619,2621,2623],{"class":510,"line":545},[508,2616,1410],{"class":603},[508,2618,607],{"class":518},[508,2620,519],{"class":518},[508,2622,1033],{"class":522},[508,2624,1428],{"class":518},[508,2626,2627,2630,2632,2634,2637,2639,2641,2643,2645,2647,2649],{"class":510,"line":568},[508,2628,2629],{"class":603},"  populate",[508,2631,607],{"class":518},[508,2633,519],{"class":518},[508,2635,2636],{"class":603}," seo",[508,2638,607],{"class":518},[508,2640,519],{"class":518},[508,2642,718],{"class":603},[508,2644,607],{"class":518},[508,2646,632],{"class":631},[508,2648,526],{"class":518},[508,2650,738],{"class":518},[508,2652,2653,2655,2657],{"class":510,"line":575},[508,2654,829],{"class":518},[508,2656,813],{"class":522},[508,2658,542],{"class":518},[508,2660,2661,2663,2665,2667,2670,2672],{"class":510,"line":593},[508,2662,1196],{"class":522},[508,2664,862],{"class":518},[508,2666,2267],{"class":522},[508,2668,2669],{"class":518},"?.",[508,2671,1201],{"class":522},[508,2673,542],{"class":518},[508,2675,2676,2678,2680,2682,2684,2686],{"class":510,"line":600},[508,2677,1196],{"class":522},[508,2679,862],{"class":518},[508,2681,2267],{"class":522},[508,2683,2669],{"class":518},[508,2685,731],{"class":522},[508,2687,542],{"class":518},[484,2689,2690,2693],{},[488,2691,2692],{},"seo()"," is the same group as a part. Spread it into any collection:",[498,2695,2698],{"className":500,"code":2696,"filename":2697,"language":503,"meta":504,"style":504},"import { defineCollection } from \"tenoncms\";\nimport { seo } from \"tenoncms\u002Fpresets\";\n\nexport const posts = defineCollection({\n  fields: {\n    title: { type: \"text\", required: true },\n    ...seo({ title: \"{title} · Blog\" }).fields,\n  },\n});\n","cms\u002Fcollections\u002Fposts.ts",[488,2699,2700,2721,2741,2745,2762,2770,2799,2831,2836],{"__ignoreMap":504},[508,2701,2702,2704,2706,2709,2711,2713,2715,2717,2719],{"class":510,"line":511},[508,2703,515],{"class":514},[508,2705,519],{"class":518},[508,2707,2708],{"class":522}," defineCollection",[508,2710,526],{"class":518},[508,2712,529],{"class":514},[508,2714,532],{"class":518},[508,2716,536],{"class":535},[508,2718,539],{"class":518},[508,2720,542],{"class":518},[508,2722,2723,2725,2727,2729,2731,2733,2735,2737,2739],{"class":510,"line":545},[508,2724,515],{"class":514},[508,2726,519],{"class":518},[508,2728,2636],{"class":522},[508,2730,526],{"class":518},[508,2732,529],{"class":514},[508,2734,532],{"class":518},[508,2736,561],{"class":535},[508,2738,539],{"class":518},[508,2740,542],{"class":518},[508,2742,2743],{"class":510,"line":568},[508,2744,572],{"emptyLinePlaceholder":571},[508,2746,2747,2749,2751,2754,2756,2758,2760],{"class":510,"line":575},[508,2748,578],{"class":514},[508,2750,1012],{"class":846},[508,2752,2753],{"class":522}," posts ",[508,2755,853],{"class":518},[508,2757,2708],{"class":584},[508,2759,587],{"class":522},[508,2761,590],{"class":518},[508,2763,2764,2766,2768],{"class":510,"line":593},[508,2765,2522],{"class":603},[508,2767,607],{"class":518},[508,2769,646],{"class":518},[508,2771,2772,2775,2777,2779,2781,2783,2785,2787,2789,2791,2793,2795,2797],{"class":510,"line":600},[508,2773,2774],{"class":603},"    title",[508,2776,607],{"class":518},[508,2778,519],{"class":518},[508,2780,693],{"class":603},[508,2782,607],{"class":518},[508,2784,532],{"class":518},[508,2786,700],{"class":535},[508,2788,539],{"class":518},[508,2790,705],{"class":518},[508,2792,708],{"class":603},[508,2794,607],{"class":518},[508,2796,632],{"class":631},[508,2798,738],{"class":518},[508,2800,2801,2804,2806,2808,2810,2812,2814,2816,2819,2821,2823,2825,2827,2829],{"class":510,"line":613},[508,2802,2803],{"class":518},"    ...",[508,2805,2267],{"class":584},[508,2807,587],{"class":522},[508,2809,1463],{"class":518},[508,2811,686],{"class":603},[508,2813,607],{"class":518},[508,2815,532],{"class":518},[508,2817,2818],{"class":535},"{title} · Blog",[508,2820,539],{"class":518},[508,2822,526],{"class":518},[508,2824,813],{"class":522},[508,2826,862],{"class":518},[508,2828,2184],{"class":522},[508,2830,635],{"class":518},[508,2832,2833],{"class":510,"line":623},[508,2834,2835],{"class":518},"  },\n",[508,2837,2838,2840,2842],{"class":510,"line":638},[508,2839,829],{"class":518},[508,2841,813],{"class":522},[508,2843,542],{"class":518},[484,2845,2846,2848,2849,2851,2852,2855,2856,862],{},[488,2847,2692],{}," takes title and description templates for documents without their own. They win over the site's ",[488,2850,2267],{}," global. Placeholders like ",[488,2853,2854],{},"{title}"," fill in from the document. See ",[2179,2857,180],{"href":181},[493,2859,2861],{"id":2860},"options","Options",[2863,2864,2865,2874,2885,2899,2902],"field-group",{},[2866,2867,2870,2871,862],"field",{"name":2868,"type":2869},"name","string","The collection name. Default ",[488,2872,2873],{},"\"pages\"",[2866,2875,2877,2878,2399,2880,2882,2883,862],{"name":1562,"type":2876},"Record\u003Cstring, Block> | string[]","Adds a ",[488,2879,1228],{},[488,2881,1562],{}," with these blocks. Without it, there is no ",[488,2884,1228],{},[2866,2886,2888,2889,2565,2891,2570,2893,2895,2896,862],{"name":2267,"type":2887},"boolean","Adds the ",[488,2890,2267],{},[2567,2892,2569],{},[2567,2894,2557],{},". Needs media. Default ",[488,2897,2898],{},"false",[2866,2900,2901],{"name":2184,"type":45},"More fields, on the Content tab. A field with the key of a preset field replaces it.",[2866,2903,2906],{"name":2904,"type":2905},"hooks","CollectionHooks","More hooks. They run after the preset's hooks. A hook with a preset hook's name replaces it.",[484,2908,2909,2910,1596,2913,1596,2916,917,2919,862],{},"All other options of a collection pass through, like ",[488,2911,2912],{},"label",[488,2914,2915],{},"localized",[488,2917,2918],{},"access",[488,2920,2921],{},"tabs",[493,2923,2925],{"id":2924},"build-your-own","Build your own",[484,2927,2928,2931,2932,1596,2934,2570,2936,2939],{},[488,2929,2930],{},"page()"," returns the ",[488,2933,2184],{},[488,2935,2904],{},[488,2937,2938],{},"permalink"," of pages with nested URLs. Use it when you want your own collection with the page logic inside:",[498,2941,2944],{"className":500,"code":2942,"filename":2943,"language":503,"meta":504,"style":504},"import { defineCollection } from \"tenoncms\";\nimport { page, seo } from \"tenoncms\u002Fpresets\";\n\nconst pageParts = page();\n\nexport const pages = defineCollection({\n  label: \"Pages\",\n  titleField: \"title\",\n  permalink: pageParts.permalink,\n  fields: {\n    ...pageParts.fields,\n    ...seo().fields,\n    body: { type: \"richtext\" },\n  },\n  hooks: pageParts.hooks,\n});\n","cms\u002Fcollections\u002Fpages.ts",[488,2945,2946,2966,2990,2994,3009,3013,3030,3045,3060,3076,3084,3097,3111,3132,3136,3151],{"__ignoreMap":504},[508,2947,2948,2950,2952,2954,2956,2958,2960,2962,2964],{"class":510,"line":511},[508,2949,515],{"class":514},[508,2951,519],{"class":518},[508,2953,2708],{"class":522},[508,2955,526],{"class":518},[508,2957,529],{"class":514},[508,2959,532],{"class":518},[508,2961,536],{"class":535},[508,2963,539],{"class":518},[508,2965,542],{"class":518},[508,2967,2968,2970,2972,2974,2976,2978,2980,2982,2984,2986,2988],{"class":510,"line":545},[508,2969,515],{"class":514},[508,2971,519],{"class":518},[508,2973,1851],{"class":522},[508,2975,705],{"class":518},[508,2977,2636],{"class":522},[508,2979,526],{"class":518},[508,2981,529],{"class":514},[508,2983,532],{"class":518},[508,2985,561],{"class":535},[508,2987,539],{"class":518},[508,2989,542],{"class":518},[508,2991,2992],{"class":510,"line":568},[508,2993,572],{"emptyLinePlaceholder":571},[508,2995,2996,2998,3001,3003,3005,3007],{"class":510,"line":575},[508,2997,847],{"class":846},[508,2999,3000],{"class":522}," pageParts ",[508,3002,853],{"class":518},[508,3004,1851],{"class":584},[508,3006,1354],{"class":522},[508,3008,542],{"class":518},[508,3010,3011],{"class":510,"line":593},[508,3012,572],{"emptyLinePlaceholder":571},[508,3014,3015,3017,3019,3022,3024,3026,3028],{"class":510,"line":600},[508,3016,578],{"class":514},[508,3018,1012],{"class":846},[508,3020,3021],{"class":522}," pages ",[508,3023,853],{"class":518},[508,3025,2708],{"class":584},[508,3027,587],{"class":522},[508,3029,590],{"class":518},[508,3031,3032,3035,3037,3039,3041,3043],{"class":510,"line":613},[508,3033,3034],{"class":603},"  label",[508,3036,607],{"class":518},[508,3038,532],{"class":518},[508,3040,130],{"class":535},[508,3042,539],{"class":518},[508,3044,635],{"class":518},[508,3046,3047,3050,3052,3054,3056,3058],{"class":510,"line":623},[508,3048,3049],{"class":603},"  titleField",[508,3051,607],{"class":518},[508,3053,532],{"class":518},[508,3055,1201],{"class":535},[508,3057,539],{"class":518},[508,3059,635],{"class":518},[508,3061,3062,3065,3067,3070,3072,3074],{"class":510,"line":638},[508,3063,3064],{"class":603},"  permalink",[508,3066,607],{"class":518},[508,3068,3069],{"class":522}," pageParts",[508,3071,862],{"class":518},[508,3073,2938],{"class":522},[508,3075,635],{"class":518},[508,3077,3078,3080,3082],{"class":510,"line":649},[508,3079,2522],{"class":603},[508,3081,607],{"class":518},[508,3083,646],{"class":518},[508,3085,3086,3088,3091,3093,3095],{"class":510,"line":659},[508,3087,2803],{"class":518},[508,3089,3090],{"class":522},"pageParts",[508,3092,862],{"class":518},[508,3094,2184],{"class":522},[508,3096,635],{"class":518},[508,3098,3099,3101,3103,3105,3107,3109],{"class":510,"line":676},[508,3100,2803],{"class":518},[508,3102,2267],{"class":584},[508,3104,1354],{"class":522},[508,3106,862],{"class":518},[508,3108,2184],{"class":522},[508,3110,635],{"class":518},[508,3112,3113,3116,3118,3120,3122,3124,3126,3128,3130],{"class":510,"line":741},[508,3114,3115],{"class":603},"    body",[508,3117,607],{"class":518},[508,3119,519],{"class":518},[508,3121,693],{"class":603},[508,3123,607],{"class":518},[508,3125,532],{"class":518},[508,3127,790],{"class":535},[508,3129,539],{"class":518},[508,3131,738],{"class":518},[508,3133,3134],{"class":510,"line":747},[508,3135,2835],{"class":518},[508,3137,3138,3141,3143,3145,3147,3149],{"class":510,"line":801},[508,3139,3140],{"class":603},"  hooks",[508,3142,607],{"class":518},[508,3144,3069],{"class":522},[508,3146,862],{"class":518},[508,3148,2904],{"class":522},[508,3150,635],{"class":518},[508,3152,3153,3155,3157],{"class":510,"line":807},[508,3154,829],{"class":518},[508,3156,813],{"class":522},[508,3158,542],{"class":518},[484,3160,3161,3164,3165,3167,3168,862],{},[488,3162,3163],{},"page({ collection: \"docs\" })"," points ",[488,3166,2233],{}," at another collection, for pages that live in ",[488,3169,3170],{},"docs",[907,3172,171],{"id":2904},[484,3174,3175,3176,3178],{},"The hooks of ",[488,3177,2930],{}," have names, so you can remove one by name:",[2189,3180,3181,3194],{},[2192,3182,3183],{},[2195,3184,3185,3188,3191],{},[2198,3186,3187],{},"Stage",[2198,3189,3190],{},"Name",[2198,3192,3193],{},"What it does",[2205,3195,3196,3211,3228,3242],{},[2195,3197,3198,3203,3208],{},[2210,3199,3200],{},[488,3201,3202],{},"beforeChange",[2210,3204,3205],{},[488,3206,3207],{},"validParent",[2210,3209,3210],{},"Rejects a parent that is the page itself or a page below it",[2195,3212,3213,3217,3222],{},[2210,3214,3215],{},[488,3216,3202],{},[2210,3218,3219],{},[488,3220,3221],{},"buildPath",[2210,3223,3224,3225,3227],{},"Sets ",[488,3226,1803],{}," from the parent's path and the slug",[2195,3229,3230,3234,3239],{},[2210,3231,3232],{},[488,3233,3202],{},[2210,3235,3236],{},[488,3237,3238],{},"uniquePath",[2210,3240,3241],{},"Rejects a path that another page already has",[2195,3243,3244,3249,3254],{},[2210,3245,3246],{},[488,3247,3248],{},"afterChange",[2210,3250,3251],{},[488,3252,3253],{},"updateChildPaths",[2210,3255,3256,3257,3259],{},"Updates the paths of all pages below when ",[488,3258,1803],{}," changes",[498,3261,3263],{"className":500,"code":3262,"language":503,"meta":504,"style":504},"const docs = page({ collection: \"docs\" });\n\n\u002F\u002F Allow two pages with the same path.\nconst { uniquePath, ...beforeChange } = docs.hooks.beforeChange;\n\nexport const docsCollection = defineCollection({\n  fields: docs.fields,\n  hooks: { beforeChange, afterChange: docs.hooks.afterChange },\n});\n",[488,3264,3265,3297,3301,3306,3340,3344,3361,3375,3406],{"__ignoreMap":504},[508,3266,3267,3269,3272,3274,3276,3278,3280,3283,3285,3287,3289,3291,3293,3295],{"class":510,"line":511},[508,3268,847],{"class":846},[508,3270,3271],{"class":522}," docs ",[508,3273,853],{"class":518},[508,3275,1851],{"class":584},[508,3277,587],{"class":522},[508,3279,1463],{"class":518},[508,3281,3282],{"class":603}," collection",[508,3284,607],{"class":518},[508,3286,532],{"class":518},[508,3288,3170],{"class":535},[508,3290,539],{"class":518},[508,3292,526],{"class":518},[508,3294,813],{"class":522},[508,3296,542],{"class":518},[508,3298,3299],{"class":510,"line":545},[508,3300,572],{"emptyLinePlaceholder":571},[508,3302,3303],{"class":510,"line":568},[508,3304,3305],{"class":596},"\u002F\u002F Allow two pages with the same path.\n",[508,3307,3308,3310,3312,3315,3317,3320,3323,3325,3327,3330,3332,3334,3336,3338],{"class":510,"line":575},[508,3309,847],{"class":846},[508,3311,519],{"class":518},[508,3313,3314],{"class":522}," uniquePath",[508,3316,705],{"class":518},[508,3318,3319],{"class":518}," ...",[508,3321,3322],{"class":522},"beforeChange ",[508,3324,829],{"class":518},[508,3326,1374],{"class":518},[508,3328,3329],{"class":522}," docs",[508,3331,862],{"class":518},[508,3333,2904],{"class":522},[508,3335,862],{"class":518},[508,3337,3202],{"class":522},[508,3339,542],{"class":518},[508,3341,3342],{"class":510,"line":593},[508,3343,572],{"emptyLinePlaceholder":571},[508,3345,3346,3348,3350,3353,3355,3357,3359],{"class":510,"line":600},[508,3347,578],{"class":514},[508,3349,1012],{"class":846},[508,3351,3352],{"class":522}," docsCollection ",[508,3354,853],{"class":518},[508,3356,2708],{"class":584},[508,3358,587],{"class":522},[508,3360,590],{"class":518},[508,3362,3363,3365,3367,3369,3371,3373],{"class":510,"line":613},[508,3364,2522],{"class":603},[508,3366,607],{"class":518},[508,3368,3329],{"class":522},[508,3370,862],{"class":518},[508,3372,2184],{"class":522},[508,3374,635],{"class":518},[508,3376,3377,3379,3381,3383,3386,3388,3391,3393,3395,3397,3399,3401,3404],{"class":510,"line":623},[508,3378,3140],{"class":603},[508,3380,607],{"class":518},[508,3382,519],{"class":518},[508,3384,3385],{"class":522}," beforeChange",[508,3387,705],{"class":518},[508,3389,3390],{"class":603}," afterChange",[508,3392,607],{"class":518},[508,3394,3329],{"class":522},[508,3396,862],{"class":518},[508,3398,2904],{"class":522},[508,3400,862],{"class":518},[508,3402,3403],{"class":522},"afterChange ",[508,3405,1428],{"class":518},[508,3407,3408,3410,3412],{"class":510,"line":638},[508,3409,829],{"class":518},[508,3411,813],{"class":522},[508,3413,542],{"class":518},[484,3415,2257,3416,3418,3419,607],{},[488,3417,490],{},", replace a hook by its name in ",[488,3420,2904],{},[498,3422,3424],{"className":500,"code":3423,"language":503,"meta":504,"style":504},"pagesPreset({\n  hooks: {\n    beforeChange: {\n      uniquePath: () => {},\n    },\n  },\n}),\n",[488,3425,3426,3434,3442,3451,3465,3470,3474],{"__ignoreMap":504},[508,3427,3428,3430,3432],{"class":510,"line":511},[508,3429,2451],{"class":584},[508,3431,587],{"class":522},[508,3433,590],{"class":518},[508,3435,3436,3438,3440],{"class":510,"line":545},[508,3437,3140],{"class":603},[508,3439,607],{"class":518},[508,3441,646],{"class":518},[508,3443,3444,3447,3449],{"class":510,"line":568},[508,3445,3446],{"class":603},"    beforeChange",[508,3448,607],{"class":518},[508,3450,646],{"class":518},[508,3452,3453,3456,3458,3460,3462],{"class":510,"line":575},[508,3454,3455],{"class":584},"      uniquePath",[508,3457,607],{"class":518},[508,3459,1398],{"class":518},[508,3461,1401],{"class":846},[508,3463,3464],{"class":518}," {},\n",[508,3466,3467],{"class":510,"line":593},[508,3468,3469],{"class":518},"    },\n",[508,3471,3472],{"class":510,"line":600},[508,3473,2835],{"class":518},[508,3475,3476,3478,3480],{"class":510,"line":613},[508,3477,829],{"class":518},[508,3479,813],{"class":522},[508,3481,635],{"class":518},[907,3483,3485],{"id":3484},"nested-paths-with-other-field-names","Nested paths with other field names",[484,3487,3488,3491],{},[488,3489,3490],{},"nestedPaths()"," gives the same hooks for fields with other names, like categories in a shop:",[498,3493,3496],{"className":500,"code":3494,"filename":3495,"language":503,"meta":504,"style":504},"import { defineCollection } from \"tenoncms\";\nimport { nestedPaths } from \"tenoncms\u002Fpresets\";\n\nexport const categories = defineCollection({\n  titleField: \"name\",\n  fields: {\n    name: { type: \"text\", required: true },\n    handle: { type: \"slug\", from: \"name\", parent: \"parentCategory\", path: \"url\" },\n    parentCategory: { type: \"relation\", collection: \"categories\", onDelete: \"restrict\" },\n    url: { type: \"text\", readOnly: true },\n  },\n  hooks: nestedPaths({ slug: \"handle\", parent: \"parentCategory\", path: \"url\" }),\n});\n","cms\u002Fcollections\u002Fcategories.ts",[488,3497,3498,3518,3539,3543,3560,3574,3582,3611,3671,3720,3750,3754,3808],{"__ignoreMap":504},[508,3499,3500,3502,3504,3506,3508,3510,3512,3514,3516],{"class":510,"line":511},[508,3501,515],{"class":514},[508,3503,519],{"class":518},[508,3505,2708],{"class":522},[508,3507,526],{"class":518},[508,3509,529],{"class":514},[508,3511,532],{"class":518},[508,3513,536],{"class":535},[508,3515,539],{"class":518},[508,3517,542],{"class":518},[508,3519,3520,3522,3524,3527,3529,3531,3533,3535,3537],{"class":510,"line":545},[508,3521,515],{"class":514},[508,3523,519],{"class":518},[508,3525,3526],{"class":522}," nestedPaths",[508,3528,526],{"class":518},[508,3530,529],{"class":514},[508,3532,532],{"class":518},[508,3534,561],{"class":535},[508,3536,539],{"class":518},[508,3538,542],{"class":518},[508,3540,3541],{"class":510,"line":568},[508,3542,572],{"emptyLinePlaceholder":571},[508,3544,3545,3547,3549,3552,3554,3556,3558],{"class":510,"line":575},[508,3546,578],{"class":514},[508,3548,1012],{"class":846},[508,3550,3551],{"class":522}," categories ",[508,3553,853],{"class":518},[508,3555,2708],{"class":584},[508,3557,587],{"class":522},[508,3559,590],{"class":518},[508,3561,3562,3564,3566,3568,3570,3572],{"class":510,"line":593},[508,3563,3049],{"class":603},[508,3565,607],{"class":518},[508,3567,532],{"class":518},[508,3569,2868],{"class":535},[508,3571,539],{"class":518},[508,3573,635],{"class":518},[508,3575,3576,3578,3580],{"class":510,"line":600},[508,3577,2522],{"class":603},[508,3579,607],{"class":518},[508,3581,646],{"class":518},[508,3583,3584,3587,3589,3591,3593,3595,3597,3599,3601,3603,3605,3607,3609],{"class":510,"line":613},[508,3585,3586],{"class":603},"    name",[508,3588,607],{"class":518},[508,3590,519],{"class":518},[508,3592,693],{"class":603},[508,3594,607],{"class":518},[508,3596,532],{"class":518},[508,3598,700],{"class":535},[508,3600,539],{"class":518},[508,3602,705],{"class":518},[508,3604,708],{"class":603},[508,3606,607],{"class":518},[508,3608,632],{"class":631},[508,3610,738],{"class":518},[508,3612,3613,3616,3618,3620,3622,3624,3626,3628,3630,3632,3634,3636,3638,3640,3642,3644,3647,3649,3651,3654,3656,3658,3660,3662,3664,3667,3669],{"class":510,"line":623},[508,3614,3615],{"class":603},"    handle",[508,3617,607],{"class":518},[508,3619,519],{"class":518},[508,3621,693],{"class":603},[508,3623,607],{"class":518},[508,3625,532],{"class":518},[508,3627,2223],{"class":535},[508,3629,539],{"class":518},[508,3631,705],{"class":518},[508,3633,529],{"class":603},[508,3635,607],{"class":518},[508,3637,532],{"class":518},[508,3639,2868],{"class":535},[508,3641,539],{"class":518},[508,3643,705],{"class":518},[508,3645,3646],{"class":603}," parent",[508,3648,607],{"class":518},[508,3650,532],{"class":518},[508,3652,3653],{"class":535},"parentCategory",[508,3655,539],{"class":518},[508,3657,705],{"class":518},[508,3659,888],{"class":603},[508,3661,607],{"class":518},[508,3663,532],{"class":518},[508,3665,3666],{"class":535},"url",[508,3668,539],{"class":518},[508,3670,738],{"class":518},[508,3672,3673,3676,3678,3680,3682,3684,3686,3689,3691,3693,3695,3697,3699,3702,3704,3706,3709,3711,3713,3716,3718],{"class":510,"line":638},[508,3674,3675],{"class":603},"    parentCategory",[508,3677,607],{"class":518},[508,3679,519],{"class":518},[508,3681,693],{"class":603},[508,3683,607],{"class":518},[508,3685,532],{"class":518},[508,3687,3688],{"class":535},"relation",[508,3690,539],{"class":518},[508,3692,705],{"class":518},[508,3694,3282],{"class":603},[508,3696,607],{"class":518},[508,3698,532],{"class":518},[508,3700,3701],{"class":535},"categories",[508,3703,539],{"class":518},[508,3705,705],{"class":518},[508,3707,3708],{"class":603}," onDelete",[508,3710,607],{"class":518},[508,3712,532],{"class":518},[508,3714,3715],{"class":535},"restrict",[508,3717,539],{"class":518},[508,3719,738],{"class":518},[508,3721,3722,3725,3727,3729,3731,3733,3735,3737,3739,3741,3744,3746,3748],{"class":510,"line":649},[508,3723,3724],{"class":603},"    url",[508,3726,607],{"class":518},[508,3728,519],{"class":518},[508,3730,693],{"class":603},[508,3732,607],{"class":518},[508,3734,532],{"class":518},[508,3736,700],{"class":535},[508,3738,539],{"class":518},[508,3740,705],{"class":518},[508,3742,3743],{"class":603}," readOnly",[508,3745,607],{"class":518},[508,3747,632],{"class":631},[508,3749,738],{"class":518},[508,3751,3752],{"class":510,"line":659},[508,3753,2835],{"class":518},[508,3755,3756,3758,3760,3762,3764,3766,3769,3771,3773,3776,3778,3780,3782,3784,3786,3788,3790,3792,3794,3796,3798,3800,3802,3804,3806],{"class":510,"line":676},[508,3757,3140],{"class":603},[508,3759,607],{"class":518},[508,3761,3526],{"class":584},[508,3763,587],{"class":522},[508,3765,1463],{"class":518},[508,3767,3768],{"class":603}," slug",[508,3770,607],{"class":518},[508,3772,532],{"class":518},[508,3774,3775],{"class":535},"handle",[508,3777,539],{"class":518},[508,3779,705],{"class":518},[508,3781,3646],{"class":603},[508,3783,607],{"class":518},[508,3785,532],{"class":518},[508,3787,3653],{"class":535},[508,3789,539],{"class":518},[508,3791,705],{"class":518},[508,3793,888],{"class":603},[508,3795,607],{"class":518},[508,3797,532],{"class":518},[508,3799,3666],{"class":535},[508,3801,539],{"class":518},[508,3803,526],{"class":518},[508,3805,813],{"class":522},[508,3807,635],{"class":518},[508,3809,3810,3812,3814],{"class":510,"line":741},[508,3811,829],{"class":518},[508,3813,813],{"class":522},[508,3815,542],{"class":518},[484,3817,3818,3819,3821,3822,3824],{},"The slug's ",[488,3820,1803],{}," option MUST name the same field as ",[488,3823,3490],{},", so the admin shows the right prefix.",[3826,3827,3828],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":504,"searchDepth":545,"depth":545,"links":3830},[3831,3834,3835,3836,3837,3838,3839],{"id":495,"depth":545,"text":496,"children":3832},[3833],{"id":909,"depth":568,"text":910},{"id":2184,"depth":545,"text":45},{"id":2286,"depth":545,"text":2287},{"id":2390,"depth":545,"text":2391},{"id":2267,"depth":545,"text":2557},{"id":2860,"depth":545,"text":2861},{"id":2924,"depth":545,"text":2925,"children":3840},[3841,3842],{"id":2904,"depth":568,"text":171},{"id":3484,"depth":568,"text":3485},"Pages with nested URLs like \u002Fabout\u002Fteam, with optional sections and SEO.","md",null,{},{"title":130,"description":3843},"r0lLV4iQ-Lx3w-E_KyfXtky3FJZA61GVW3GxDveIGYc",[3850,3852],{"title":126,"path":127,"stem":128,"description":3851,"children":-1},"A navigation menu that editors arrange as a tree.",{"title":134,"path":135,"stem":136,"description":3853,"children":-1},"Extend or remove the built-in general and seo globals.",1795884706508]