发布于: 2024-8-12最后更新: 2024-9-9字数 00 分钟

type
status
date
slug
summary
tags
category
icon
url
sync
This article introduces a Notion-powered website template that uses Next.js and Vercel for quick deployment. The template supports Notion as a CMS and features fast setup, responsive design, optimized page speed, automatic social image generation, automatic table of contents, dark mode support, and more.
It's a rare high-star project on GitHub related to Notion. In addition to this project, the developer has another project related to Notion API development, making them a veteran in the field of Notion utilization.
Unfortunately, for some unknown reason, I couldn't install the dependencies (sharp, that's you) on my two computers, so I couldn't experience it. Judging from the demo, the design is still online.

Key Features

  • Main Technology Stack: Uses Notion as a CMS, combined with react-notion-x, Next.js, and Vercel.
  • Features: Quick setup, full support for Notion content, built with Next.js, TypeScript, and React, excellent page load speed, smooth image preview, automatic social images, beautiful URLs, automatic table of contents, dark mode support, fast search, responsive design, optimized use of Next.js and Vercel.
  • Setup: All configurations are defined in the middle, and the latest version of Node.js is required. Includes cloning the repository, modifying configurations, installing dependencies, local testing, and deploying to Vercel.
  • URL Paths: There is a slight difference in URL paths between development and production environments. The Notion page ID is displayed during development, and it is more concise in production.
  • Preview Images: Use and generate optimized images. Preview images are enabled by default and can be disabled through the configuration file.
  • Redis: Optional Redis caching for speeding up the generation of preview images, requires setting up environment variables.
  • Styling: Custom CSS styles for Notion content are located, and you can customize styles for specific blocks.
  • Automatic Social Images: Automatically generate Open Graph and social meta tags from Notion content, using headless Chrome to generate social images.
  • Automatic Table of Contents: Article pages display a table of contents by default, using scrollspy logic to automatically update the current section.
  • Analytics: Optional analytics features such as Fathom Analytics and PostHog Analytics, enabled through environment variables.
  • Environment Variables: If you use Redis, analytics, or other features that require environment variables, you need to add them to your Vercel project.

More Images

notion image
notion image

Loading...
Potion

Potion

Potion is a website creation tool based on the Notion platform, allowing users to quickly generate websites with custom domains, styles, and optimized search engines. It offers a live editor, custom CSS and fonts, SEO-friendly URL generation, and fast page loading speeds. Additionally, Potion supports password-protected websites and integrates with various tools, making it suitable for creating help documents, landing pages, information products, portfolios, and blogs.


avatartion

avatartion

A Notion-style avatar generator, but why does it look Japanese?