A starter-kit for a dynamic landing page or personal website with Next.js and Notion as CMS (Content Management System). Simplify web routing with synchronization of Notion and Next root files.
CMS/
├── home
├── about
├── blog
├── will-developer-be-replaced-by-ai
└── fullstack-roadmap-2025
-
Make sure you have
gitandpnpminstalled on your machine.git clone https://github.com/fydemy/nextion . pnpm install -
Go to Notion Integrations and click on the
New integrationbutton. -
Fill down the
Integration Name,Assosiated workspace, and leave the type toInternalsince we just need the API integration only. -
Copy the
Internal Integration Secretand paste into the.env.localNOTION_TOKEN=ntn_XXX WORKSPACE_ID= // the parent id can be found in the url *in the square bracket (https://www.notion.so/fydemy/CMS-[2684e315713a80ae8eb0c39934603184]) ROOT_FALLBACK= // the name of notion page for the / or root route NEXT_PUBLIC_GA_MEASUREMENT_ID= // can be found at analytics.google.com -
Get started by adding a Page and Subpages on the
Assosiated workspacethat you have chosen earlier. (*with lowercase and URL/slug rule)CMS [Workspace]/ ├── home [Page] ├── about [Page] ├── blog [Page] ├── will-developer-be-replaced by-ai [SubPage] └── fullstack-roadmap-2025 [SubPage] -
Change your essential assets such as
LogoandFaviconin the public folder with the same file name -
Any changes on the style, link, etc. can be added technically within the app folder
- Sync between next.js and notion file routing
- Add YAML configuration block code at the begining of the page content on Notion to configure the title and description metadata
title: "Home" description: "We are a community-driven initiative focused on open-source software engineering and e-learning."
- Google analytics integrated with custom event!
- Responsive in any devices
- Provided plain-styled design with
TailwindCSSandLucide-reactwhich make it easy to modify and improve based on your needs.
- Provide more stying templates (1)
- Bash scripting for configuration and setup
- No clickable link/UI subpage list in the page
Visit our github profile and seek for a Discord link at fydemy.com.
