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/creating-content/blog-posts.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ The image source will be used as-is, and no additional processing is done.
212
212
image: https://cdn.example.com/image.jpg
213
213
```
214
214
215
-
#### Data-rich image
215
+
#### Data-rich image and captions
216
216
217
217
You can also supply an array of data to construct a rich image with a fluent caption.
218
218
@@ -226,9 +226,20 @@ image:
226
226
licenseUrl: https://example.com/license/
227
227
authorUrl: https://photographer.example.com/
228
228
authorName: "John Doe"
229
+
caption: "Overrides the fluent caption feature"
229
230
```
230
231
231
-
>info See [posts/introducing-images](https://hydephp.com/posts/introducing-images) for a detailed blog post with examples and schema information!
232
+
The data will then be used for metadata and to render a fluently worded caption. If you just want to add a quick caption, you can instead simply set the "caption field" to override the caption; or if you simply want a caption and no metadata this is a quick option as well.
alt: Example of a static website created from a GitHub Readme
237
+
caption: Static website from GitHub Readme with **Markdown** support!
238
+
```
239
+
240
+
The caption field supports inline Markdown formatting like **bold**, *italic*, and [links](https://example.com). This makes it easy to add rich text formatting to your image captions.
241
+
242
+
If the `alt` field is missing, the caption will be used as the alt text as well.
0 commit comments