NavyDish / Next-js-blog-with-notion-cms

This is a simple project that will help you to set up your Next.js Blog with Notion.so CMS. Plus there's a Telegram integration for information capture

Home Page:next-js-blog-with-notion-cms.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js blog using Notion.so as CMS

βž• a simple integration with Zapier for information capture.

πŸ‘ DEMO IS HERE

Setting Notion Database

You can get it from here. Just copy to your workplace.

Remember, each section must be filled!

βœ… ID = The id of a Notion page that can be used as a blog post. For example, https://www.notion.so/whatifbelief/First-Blog-257536fd396b4c73a0c3c25e0f154dd9 is the link to a blogpost. 257536fd396b4c73a0c3c25e0f154dd9 is the needed ID.

βœ… title = The title of the page that will be display on the tab in the browser.

βœ… slug = The link http://website.com/posts/[slug].

βœ… coverImage = The image that is displayed on the main page.

βœ… description = The description that can be seen as meta tag

Make it your own

To use it you need to create your own database. Copy it from this link https://www.notion.so/whatifbelief/88f847314b884d228431da3b1fe44a5a?v=b3838604e52c40c7bb5a8984a554dc31. After you import it into your notion workplace you need to replace the notion id in the repository with your id.

next.config.js

module.exports = {
  env: {
    notionTableId: "88f847314b884d228431da3b1fe44a5a", //replace this id this your Notion table id
  },
};

❗️❗️❗️ Your Notion pages must be public to be read (otherwise you'll get an error). So, make sure you share them to web.

Zapier integration

pages/api/zapier.js

const zapierLink = "https://hooks.zapier.com/hooks/catch/*******/*******"; // replace with your Zapier link

Replace with your Zapier link and process the information however you'd like.

License

MIT

Credits

πŸ‘ UI Library has been used in this project

About

This is a simple project that will help you to set up your Next.js Blog with Notion.so CMS. Plus there's a Telegram integration for information capture

next-js-blog-with-notion-cms.vercel.app

License:MIT License


Languages

Language:JavaScript 95.0%Language:CSS 5.0%