This is an open-source starter blog template that is statically generated with Next.js, content powered by Notion and styled with Tailwind CSS.
Still a work in progress.
Live example hosted on Vercel: https://blog.luciovilla.com
git clone https://github.com/luciovilla/notion-nextjs-blog.git
npm install
.env.example
file to .env.local
Container.js
Page
(type: title): this the blog post's headline and meta title.Slug
(text): this is the blog post's URL slug.Date
(date): the display date and meta published_time property.Description
(text): this is the preview text on the homepage and the meta description property.Published
(checkbox): this checks if a blog post should be displayed when deployed. Cover Image
(files & media): optional - adds a cover image for a post on the frontpage and becomes the featured image on social (og:image, twitter card image).View this sample template table in Notion.
.env.local
file: NOTION_TOKEN=____
.env.local
file: NOTION_DATABASE_ID=___
Run npm run dev
Deploy your own Notion blog with Vercel.
Thankful for the following people as I was inspired by their code: