@manton congratulations on the book. It looks really good!
A quick comment about the Micropub chapter. There's an example for pages:
POST /micropub
Authorization: Bearer 123456789
Content-Type: application/json
{
"type": "h-entry",
"properties" {
"content": "Hello",
"mp-channel": "pages"
}
}
which might need to be updated. The values should be arrays, if I'm not mistaken. I remember sending "mp-channel": "pages"
and not getting a page, but a post created. I had to send "mp-channel": ["pages"]
instead. According to the Micropub documentation, should be an array for type
, content
, name
, etc... as well. name
might be mandatory, but I not 100% sure about that.
I tried to use the JSON format to create a page, but couldn't make mp-navigation
work. It works for the x-www-form-urlencoded
version (query items), but ddin't work using JSON (I tried to place it in different places without success).
👏 👏 👏