Notion-powered blog starter with Nextjs and Tailwind

Overview

A preview of my revamped blogfolio

Nextjs Notion Blog Starter

✨ Features

  • βœ… Setup takes only a few minutes (single file config) πŸ’ͺ

  • βœ… Newsletter subscription via Convertkit API

  • βœ… Simple analytics with Umami

  • βœ… Automatic OG social images with Tailwind template

  • βœ… Automatic pretty URLs

  • βœ… Excellent page speed

  • βœ… Optimized for Next.js and Vercel

πŸ›  Build with

πŸ“• Project Overview

  • layouts/* - The different layouts used on each page.
  • components/* - Components used throughout the site.
  • components/notionBlocks/* - Custom blocks made for Notion rendering.
  • utils/* - Short for "utilities", a collection of helpful utilities or code for external services.
  • pages/api/* - API routes powering /og-image dynamic OG image and /subscribe-convertkit newsletter subscription.
  • pages/blog/* - Static pre-rendered blog pages that fetch information from the Notion API.
  • pages/* - All other static pages.
  • public/* - Static assets including images, fonts, and videos.
  • styles/* - global styles and Tailwind.
  • data/* - a simple file containing global data about the site.

πŸƒβ€β™‚οΈ Running Locally

git clone https://github.com/tuanphungcz/nextjs-notion-blog-starter
cd nextjs-notion-blog-starter
npm install
npm run dev

Create a .env file similar to .env.example and include the appropriate keys.

πŸš€ Deploy to vercel

Deploy with Vercel

NOTION_SECRET=
BLOG_DATABASE_ID=

# ConvertKit is optional
NEXT_PUBLIC_CONVERTKIT_FORM_ID=
NEXT_PUBLIC_CONVERTKIT_API_KEY=

# Umami is optional
NEXT_PUBLIC_UMAMI_ID=
NEXT_PUBLIC_UMAMI_URL=

πŸ’β€β™€οΈ How to use

  • Blog setup - I wrote an article on how to use this starter to start your blog

πŸ“ Credit & inspiration

This blog starter was inspired by all of these awesome open-sources

You might also like...

Fullstack Turborepo starter. Typescript, Nestjs, Nextjs, Tailwind, Prisma, Github Actions, Docker, And Reverse proxy configured

Turborepo (NestJS + Prisma + NextJS + Tailwind + Typescript + Jest) Starter This is fullstack turborepo starter. It comes with the following features.

Jan 9, 2023

Starter-gatsby-blog - Gatsby starter for a Contentful project from the community.

Starter-gatsby-blog - Gatsby starter for a Contentful project from the community.

Contentful Gatsby Starter Blog Create a Gatsby blog powered by Contentful. Static sites are scalable, secure and have very little required maintenance

Jan 29, 2022

Create nbundle-powered Notion apps with one command

⚠️ This project is under development and is not ready for public use. All 1.0.x releases are considered alpha releases, are not stable, and may have b

Nov 29, 2022

A Notion themed portfolio developed with NextJS, deployed on Vercel.

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Jul 19, 2022

Show floating sticky outline (table of contents) for Notion pages, powered by nbundle.

Notion Outline Show floating sticky outline (table of contents) for Notion pages, powered by nbundle. This is an nbundle-powered Notion app bootstrapp

Nov 10, 2022

11ty starter: uses md and notion as data sources

11ty starter: uses md and notion as data sources

eleventy_notion_starter 11ty starter: uses md and notion as data sources. Based on https://github.com/siakaramalegos/11ty-sia-blog. Used to power http

Oct 26, 2022

Gatsby-blog-cosmicjs - πŸš€βš‘οΈ Blazing fast blog built with Gatsby and the Cosmic Headless CMS πŸ”₯

Gatsby-blog-cosmicjs - πŸš€βš‘οΈ Blazing fast blog built with Gatsby and the Cosmic Headless CMS πŸ”₯

Gatsby + Cosmic This repo contains an example blog website that is built with Gatsby, and Cosmic. See live demo hosted on Netlify Uses the Cosmic Gats

Jan 29, 2022

⚑ Personal website and blog made using TypeScript, Next.js, Tailwind CSS.

⚑ Personal website and blog made using TypeScript, Next.js, Tailwind CSS.

小康 blog View Demo · Report Bug · Request Feature 🌍 honghong.me Framework: Next.js Database: Planetscale ORM: Prisma Authentication: NextAuth.js Deplo

Dec 31, 2022

🌟 My Website/Blog using Next.js, Tailwind CSS and Vercel (v3)

🌟 My Website/Blog using Next.js, Tailwind CSS and Vercel (v3)

My Website made using Next.js, Tailwind CSS, and Vercel. Screenshots πŸ“Έ πŸš€ Live at - https://arunava.tech Features 🌟 Next.js Tailwind CSS Vercel Dark

Dec 22, 2022
Comments
  • Vercel deployment

    Vercel deployment

    I'm looking forward to setting this up as my open notebook deployed on vercel. For that I would need to hide keep my secrets locally while also having them on vercel. This doesn't seem to be explained in the docs.

    You should be able to set up a Deploy button https://vercel.com/docs/deploy-button with the correct API keys field and get a super simple deployment setup for new users

    I've went ahead and made a deploy button already : Deploy with Vercel

    I would recommend you include it in the readme along with the "Run locally" section. I would open a PR but I'm on mobile at the moment

    opened by ajnart 2
  • Image not Render

    Image not Render

    I want to make some of the blog post with Image in it. Like Step By step Tutorial type of content. I found that image not showing up in the blog post after I publish . I am using Blog Starter Template( older version ). Is there any way to fix? Thank you.

    opened by thelapyae 0
Owner
Tuan Phung
Freelance Frontend Developer | Co-author @useAnimations
Tuan Phung
A Technical Blogging Website that utilizes Notion as a CMS for ease of modification with the help of the notion-API & whose content has been rendered with next-js and react-notion-x

GDSC MCE Blogs This repo is what GDSC MCE uses to power their blogging website gdsc-mce-blogs. It uses Notion as a CMS, fetching content from Notion a

null 7 Dec 16, 2022
Bookworm is a minimal NextJs Tailwind blog starter template.

Bookworm Light Nextjs Blog Template ????View Live Preview Download Download this template from Github Installation After downloading the template, you

Themefisher 46 Dec 23, 2022
A minimal norui portfolio example built with NextJS and powered by Notion πŸš€.

Minimal Norui A minimal norui portfolio example built with NextJS and powered by Notion ?? . Links Demo Site Documentation Minimal Norui Notion Databa

Joeylene Rivera 4 Nov 13, 2022
Minimal, SEO-focused website starter kit powered by Notion, GitHub, and Vercel.

wr8 wr8 lets you create a website in Notion with better SEO. It is a customized version of nextjs-notion-starter-kit, based on NotionX. Introduction T

Verfasor 7 Dec 22, 2022
simple-remix-blog is a blog template built using Remix and TailwindCSS. Create your own blog in just a few minutes!

simple-remix-blog is a blog template built using remix.run and TailwindCSS. It supports markdown and MDX for the blog posts. You can clone it and star

José Miguel Álvarez Vañó 8 Dec 8, 2022
This is a blog built with sveltekit, tailwind and daisyUI, made to be used as my personal blog.

svelte-blogger This is a blog built with sveltekit, tailwind and daisyUI, made to be used as my personal blog. This app also use graphql and use markd

lipe 6 Jun 23, 2022
My personal Website, where I share my blog and project. Build using Nextjs and Tailwind CSS

Personal Blog This is my portfolio website built with Next.js, Tailwind CSS and hosted with Vercel. Perfect Light House Score ?? Installation & Set Up

Ashish Lotake 6 Dec 24, 2022
Build a blog site using Nextjs, Tailwind css, GraphQL, Graph CMS

NextJs-GraphQL-blog-site 1. Key Features 2. Technologies I've used Key Features: ?? In Graph-CMS side we can create post, categories, check the commen

suraj ✨ 10 Dec 8, 2022
Starter template for a personal website blog, built with Next.js, MDX, and Tailwind CSS.

nextjs-mdx-blog-theme View: demo site Framework: Next.js Deployment: Vercel Content: MDX Styling: Tailwind CSS Running Locally $ git clone https://git

Alex Carpenter 18 Dec 26, 2022
βͺ Rewinds – Remix Tailwind Starter Kit with Tailwind CSS, Headless UI, Radix UI, and more

βͺ Rewinds – Remix Tailwind Starter Kit Rewinds is a Remix starter kit with Tailwind CSS v3 family of libraries. This is an example demo to combine the

M Haidar Hanif 81 Dec 24, 2022