fix typo
This commit is contained in:
@@ -16,7 +16,7 @@ Automagical css image gallery in [Hugo](https://gohugo.io/) using shortcodes. No
|
|||||||
- Use the `{{< snap-dir >}}` shortcode inside a `{{< gallery >}}` to show all containing files nicely
|
- Use the `{{< snap-dir >}}` shortcode inside a `{{< gallery >}}` to show all containing files nicely
|
||||||
- Next/prev buttons in galleries
|
- Next/prev buttons in galleries
|
||||||
- The gallery is responsive, images are scaled/cropped to fill square tiles
|
- The gallery is responsive, images are scaled/cropped to fill square tiles
|
||||||
- Pretty captions outside and inside lightbox
|
- Pretty captions outside and inside lightbox
|
||||||
- Only requires 4kB of CSS (unminified; you can minify it if you want)
|
- Only requires 4kB of CSS (unminified; you can minify it if you want)
|
||||||
- CSS is automatically loaded the first time you use the `{{< figure >}}` shortcode on each page
|
- CSS is automatically loaded the first time you use the `{{< figure >}}` shortcode on each page
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ theme = [ "hugo-sustain", "hugo-snap-gallery" ]
|
|||||||
Specifying your image files:
|
Specifying your image files:
|
||||||
|
|
||||||
- `{{< figure src="image.jpg" >}}` will just show the image with no caption, and open the full version of it when clicked
|
- `{{< figure src="image.jpg" >}}` will just show the image with no caption, and open the full version of it when clicked
|
||||||
- `{{< figure src="image.jpg" capation="My description" >}}` will show the image and open the full version of it when clicked, and shows the caption text in both views. Markdown is possible
|
- `{{< figure src="image.jpg" caption="My description" >}}` will show the image and open the full version of it when clicked, and shows the caption text in both views. Markdown is possible
|
||||||
- `{{< figure src="image.jpg" link="http://example.com" >}}` will use `image.jpg` for thumbnail and link to `http://example.com` when clicked
|
- `{{< figure src="image.jpg" link="http://example.com" >}}` will use `image.jpg` for thumbnail and link to `http://example.com` when clicked
|
||||||
|
|
||||||
Optional parameters:
|
Optional parameters:
|
||||||
|
|||||||
Reference in New Issue
Block a user