Use your json formatted files to create pages with TinaCMS
1. Relevant Imports
This introductory step is just importing a series of Tina related methods, like useTina and client. As well as relevant helper methods.
2. Data Fetching
Using the Next.js method for fetching data at build time. Specifically using the Tina generated `client.queries` function to grab the relevant gql query. Returning it in a format the useTina hook can read.
3. Static Path Defining
Grabs all the .json files and maps each corresponding slug (based on file name) to serve as the URL parameter of each page.
4. Populate useTina Hook
Our custom useTina hook is used to fetch and manage the TinaCMS data for live and contextual editing.
5. Rendering <BlocksPage />
Another component used to actually render the data based on the structure type that the data comes in from
Tina is an open-source, Git-backed headless content management system (CMS) that empowers both developers and content creators to collaborate seamlessly on a single platform. Tina enables developers to craft a custom visual editing experience perfectly tailored to their website or application while supporting a broad range of content types such as Markdown, MDX, and JSON.
Performance at Scale: Tina is designed for large-scale projects. Whether your site has hundreds or tens of thousands of pages, Tina ensures optimal performance.
Powerful Query Capabilities: With Tina's unique data layer, your Markdown content becomes as flexible and queryable as if it were in a database.