Overview
astro-notion-blog enables users to create a blog using Notion and generates it statically, resulting in lightning-fast page views. The framework offers various features such as the ability to write blog content in Notion, customization of site appearance, integration with official Notion APIs, and quick start deployment.
Features
- Blazing fast page views: Generates static pages for lightning-fast loading times.
- Write blog content in Notion: Allows users to write and manage blog content directly in Notion.
- Customize site appearance: Users can customize the appearance of their blog to their liking.
- Take advantage of the official Notion APIs: Integration with official Notion APIs provides extended functionality.
Installation
To install astro-notion-blog, follow these steps:
- Duplicate the blog template into your Notion workspace.
- Customize the duplicated page (database) by changing the icon, title, and description.
- Identify the DATABASE_ID by noting the portion of the duplicated page (database) URL.
- Create an integration and note the “Internal Integration Token” as NOTION_API_SECRET.
- Share a database with your integration to integrate your application with Notion.
- Fork the repository by clicking on the ‘Fork’ button in the top-right corner of the repository page.
- Go to Cloudflare Pages and sign in.
- Create a new project with “Connect to Git” using your forked repository (/astro-notion-blog) and click “Begin setup”.
- In the “Build settings” section, select “Astro” as the “Framework preset”.
- In “Environment Variables (advanced)”, set NODE_VERSION, NOTION_API_SECRET, and DATABASE_ID. NODE_VERSION should be v18.16.0 or higher.
- Deploy your Notion Blog by clicking the ‘Save and Deploy’ button. Note that manual deployment is required every time you publish a new post or make updates. Manual deployment can be done from the Cloudflare Pages dashboard or set up a scheduled deploy using CI tools such as GitHub Actions.
Summary
astro-notion-blog is a framework that allows users to create a blog using Notion and generate it statically for fast page views. It offers features such as writing blog content in Notion, customization of site appearance, integration with official Notion APIs, and a quick start deployment process. Users can easily install and customize astro-notion-blog to create their own personalized blogs. Manual deployment is required for each post or update, but overall, the framework provides an efficient and user-friendly solution for creating blogs.