mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-05 02:29:44 +00:00
Update docs
This commit is contained in:
1 file changed
+3
-3
@@ -251,7 +251,7 @@ Call to action
|
|||||||
| Parameter | Description |
|
| Parameter | Description |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `images` | **Required.** A regex string to match image names or URLs. |
|
| `images` | **Required.** A regex string to match image names or URLs. |
|
||||||
| `captions` | **Optional.** A list of `key:caption` pairs. Keys can be image filenames (for local images) or full URLs (for remote images). |
|
| `captions` | **Optional.** A list of `key:caption` pairs. Keys can be image filenames (for local images) or full URLs (for remote images). Captions support Markdown. |
|
||||||
| `aspectRatio` | **Optional.** The aspect ratio for the carousel. It is set to `16-9` by default. |
|
| `aspectRatio` | **Optional.** The aspect ratio for the carousel. It is set to `16-9` by default. |
|
||||||
| `interval` | **Optional.** The interval for the auto-scrooling, specified in milliseconds. Defaults to `2000` (2s) |
|
| `interval` | **Optional.** The interval for the auto-scrooling, specified in milliseconds. Defaults to `2000` (2s) |
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -277,10 +277,10 @@ Captions are matched by key. For local images, use the filename (e.g. `01.jpg`).
|
|||||||
**Example 3:** Add captions
|
**Example 3:** Add captions
|
||||||
|
|
||||||
```md
|
```md
|
||||||
{{</* carousel images="gallery/*" captions="{01.jpg:First *image*,02.jpg:Second image with a [link](https://example.com)}" */>}}
|
{{</* carousel images="gallery/*" captions="{01.jpg:First image with *formatting*,02.jpg:Second image with a [link](https://example.com)}" */>}}
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< carousel images="gallery/*" captions="{01.jpg:First *image*,02.jpg:Second image with a [link](https://example.com)}" >}}
|
{{< carousel images="gallery/*" captions="{01.jpg:First image with *formatting*,02.jpg:Second image with a [link](https://example.com)}" >}}
|
||||||
|
|
||||||
<br/><br/><br/>
|
<br/><br/><br/>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user