You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/options.md
+51
Original file line number
Diff line number
Diff line change
@@ -216,6 +216,57 @@ Example, using a URL:
216
216
217
217
---
218
218
219
+
### publication.enrichPostData `boolean`
220
+
221
+
Fetch and append data about URLs referenced in new posts.
222
+
223
+
_Optional_, defaults to `false`. For example:
224
+
225
+
```json
226
+
{
227
+
"publication": {
228
+
"enrichPostData": true
229
+
}
230
+
}
231
+
```
232
+
233
+
When enabled, Indiekit will try to fetch Microformats data for any URL in a new post (for example URLs for `bookmark-of`, `like-of`, `repost-of`, `in-reply-to`).
234
+
235
+
If any data is found, a `references` property will be included in the resulting post data. For example, given the following Micropub request:
236
+
237
+
```http
238
+
POST /micropub HTTP/1.1
239
+
Host: indiekit.mywebsite.com
240
+
Content-type: application/x-www-form-urlencoded
241
+
Authorization: Bearer XXXXXXX
242
+
243
+
h=entry
244
+
&content=This+made+me+very+hungry.
245
+
&bookmark-of=https://website.example/notes/123
246
+
```
247
+
248
+
should the note post at `https://website.example/notes/123` include Microformats, the following post data would be generated:
0 commit comments