• Stars
    star
    190
  • Rank 203,739 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Notion-powered blog starter with @vercel and @tailwindcss

October 2022: I am releasing a new verssion which allows user to create multiple blog posts. The previous version Nextjs Notion Blog Starter is still available under the blog-starter branch.


Blogfolio –  An open-source link notion-powered blog starter with Nextjs and Tailwind

Blogfolio.co

Blogfolio is a open-source blog starter built with Nextjs and Tailwind. It uses Notion as a CMS and is deployed on Vercel. Build on top of Notion API worker and React-notion


✨ Live Demo

✨ Features

  • βœ… Excellent page speed
  • βœ… Optimized for Next.js and Vercel
  • βœ… Automatic OG social images with @vercel/og
  • βœ… Automatic pretty URLs
  • βœ… Newsletter subscription via Convertkit API
  • βœ… Simple analytics with Umami

πŸ›  Tech stack

πŸ“• Project Overview

  • layouts/* - The different layouts used on each page.
  • components/* - Components used throughout the site.
  • utils/* - Short for "utilities", a collection of helpful utilities or code for external services.
  • pages/api/* - API routes powering /@vercel/og 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/blogfolio.co
cd blogfolio.co
npm install
npm run dev

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

πŸš€ Deploy to vercel

Deploy with Vercel

DATABASE_URL=               # postgresql://postgres....

GOOGLE_ID=
GOOGLE_SECRET=

NEXTAUTH_SECRET=
AUTH_BEARER_TOKEN=
VERCEL_PROJECT_ID=

SERVICE_WORKER_API=

NEXT_PUBLIC_APP_DOMAIN_URL=
NEXT_PUBLIC_DEMO_BLOG=


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

  • Will be added - 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