Starter for a basic website builder where content can be defined in a headless CMS
Table of Contents
- Define content on a headless CMS (Sanity.io):
- Create pages with rich text editors
- Add images, embedded PDFs, and files to be served and optimised by Next js
- Custom navigation and dynamic page routes
- Preview draft changes in Sanity Studio or at
https://SITE_URL/api/preview
- ISR (Incremental Static Regeneration) for published changes, without requiring a manual rebuild
- Built with Next js for static site generation and integrations with Sanity
- Unstyled Bootstrap starter that can be customised to display content from the CMS as desired
Read this blog for a detailed guide.
Find an example of this template being used on a project at https://github.com/Tim-W-James/Journeys-Continue.
Future plans:
- Additional out-of-the-box content in the CMS:
- Header with social links
- Footers
- Customise the base theme from within the CMS and create a dark theme
- Icons
- Better type safety for the CMS schemas
- Additional runtime type checking on the frontend for the CMS data. Currently, the rich text content (using portable text) has runtime type checking, but this needs to be done for other schemas
See the open issues for a list of proposed features (and known issues).
Adapted from the NextJS + SanityCMS blog starter. Refer to the README for development/deployment instructions (noting that the schemas are different).
Distributed under the MIT License. See LICENSE.txt
for more information.
Email: tim.jameswork9800@gmail.com
Project Link: https://github.com/Tim-W-James/cms-site-builder
- Adapted from the NextJS + SanityCMS blog starter