Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.05 KB

File metadata and controls

40 lines (28 loc) · 1.05 KB

This is a Next.js blog using Notions Public API written in Typescript.

Demo: https://www.zamiang.com

Based on: https://samuelkraft.com/blog/building-a-notion-blog-with-public-api

Features

  • Sitemap
  • RSS feed
  • Google analytics
  • Content security policy
  • Robust eslint and prettier config
  • Supports all notion blocks current supported by the API (I think?)
  • Supports both photos and writing

Getting Started

First, follow Notions getting started guide to get a NOTION_TOKEN, NOTION_POSTS_ID and NOTION_PHOTOS_ID, then add them to a file called .env.local`.

NOTION_TOKEN=
NOTION_POSTS_DATABASE_ID=
NOTION_PHOTOS_DATABASE_ID=
GOOGLE_ANALYTICS_ID=

Install dependencies

npm install

Start the server with

npm run dev

Open http://localhost:3000 with your browser to see the result.