Git Product home page Git Product logo

notion-blog's Introduction

Notion Blog with Next.js 13

demo site screenshot

Contents

๐Ÿš€ Introduction

This is a blog template that uses Notion as CMS.
Upload posts in Notion, share them through your blog!
This project uses App Router that is now stable in Next.js 13.4.

๐Ÿ‘€ Demo

Check out the demo site HERE

https://www.youtube.com/watch?v=rZgh8a4ZjA8

Video Label

๐ŸŒŸ Features

  • Simple to sync Notion and blog
  • Search posts by name
  • Filter posts by categories
  • Related posts
  • Dark mode
  • Responsive design
  • Sitemap

๐Ÿ“ฆ Major Package Dependencies

๐Ÿ Getting Started

  1. Duplicate this notion blog template to your notion workspace. (Make your notion page public.)

    duplicate template
  2. Visit your notion page with browser.

  3. Check your database id in the url. (needed as an environment variable)

    check database id
  4. Check your auth token in the cookie. (needed as an environment variable)

    check auth token
  5. Now you can run on local or deploy to Vercel with environment variables listed below.

Slug should be unique because it's used as url of the post page

Environment Variables

NOTION_DATABASE_ID: getting started step 3
NOTION_AUTH_TOKEN: getting started step 4
SITE_URL: URL of your site (http://localhost:3000 in local environment)
API_KEY: Choose your own password for route handler

Screenshots

Desktop

Tablet

Mobile

๐Ÿ“ TODO

  • Light mode for code block

notion-blog's People

Contributors

wildcatco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.