Common Customization Examples
These examples show the files. In the Tina edition, use the same fields in the forms at /admin/. In the Sanity edition, use the Studio. See What Is Editable In Tina and What Is Editable In Sanity.
Hide A Shared Section Everywhere
Set enable: false in its shared content file, in each language:
enable: falseRemove A Section From One Page
Remove or comment out the component call in the relevant file under src/pages/[...lang]/. Do not disable the shared content entry if other pages still use it.
Hide A Menu Item
{ "enable": false, "name": "Pricing", "url": "/pricing/"}Draft A Page Or Collection Entry
---title: "Work In Progress"draft: true---Production collection queries filter drafts, and the build script removes draft URLs from the generated sitemap.
Override A Reused Section On One Page
A section uses page frontmatter only when the route passes it to the section. In the Astro edition, the FAQ page does this for faqSection, and the team and case studies pages for bannerCardSection:
faqSection: title: "Questions Our Clients Ask"On other pages, pass the block in the route yourself, then add it to that page’s frontmatter:
<ServicesSection content={aboutIndex?.data.servicesSection} />The available keys come from src/sections.schema.ts. In the Tina edition, the routes already do this for the blocks listed in What Is Editable In Tina, so you fill in the block in the page’s form.
Launch One Language
To turn one language off and keep its files, add its code to disableLanguages in [settings.multilingual].
To keep only your default language in the Astro edition, make a copy of your project first, because this deletes the other languages’ files. Set enable = false:
[settings.multilingual] enable = falseThen run:
npm run toml:watchnpm run remove-multilingualOn Netlify, also delete the language blocks from netlify.toml. The steps differ in the Tina and Sanity editions. See Internationalization.