Testing all Blocks Here
Hello everyone, this is my blogpost "Hello world!"
It's written in Notion and pre-rendered on this page using Next.js getInitialProps. It also uses Incremental Static Generation with theĀ validateĀ option so the content updates when the source is edited.
šŖ How does it work?
Now I'm just writing placeholder content to try out the different blocks available. How about aĀ link,Ā bold text,strikethrough text,Ā italic text andĀ code? Colored text?
š Source code
Get the source code at my github repo:Ā https://github.com/samuelkraft/notion-blog-nextjs
š¤ What about a fancy table block?
ā Unsupported block (child_database)The notion API only supports a couple of basic text-like blocks as specified inĀ their documentation
Supported blocks:
Heading 1
Heading 2
Heading 3
Paragraph
What is this?
It's the children of a toggle!
Colored Block
A simple quote block
Sub Page
External Image
Notion-hosted image
Customizing
To edit a block change theĀ renderBlockĀ function inĀ [id].js
āļø
ā Go home