Build a simple blog
Let's Build a Simple Blog
Let's assume we have a blog collection with the following properties: title
, date
, and published
.
When you're ready to publish your content, navigate to the Writeflow dashboard and create a collection connected to the Notion database. Once created, you'll receive an API key and be able to set up webhooks.
See Webhooks
Key Information
Content
The content will be stored in this format:
{
"id": "vmdo3_2a",
"title": "Bug-Free Zone",
"slug": "Bug-Free-Zone",
"properties": {
"title": "...",
"date": "...",
"published": "..."
},
"body": ["..."]
}
💡Note: The slug field is automatically generated from the title. However, if you add a property named
slug
to your Notion database, that value will be used instead. See Content
Fetching Content Data
You can retrieve content data using the HTTP API through the Fetch API or other HTTP client methods.
See HTTP API
However, we also offer TypeScript client code generation, enabling you to build your blog quickly and efficiently.