erge branch 'dev' into feature-shortcode-slider
BIN
exampleSite/content/docs/shortcodes/gallery/01.jpg
Normal file
|
After Width: | Height: | Size: 2.6 MiB |
BIN
exampleSite/content/docs/shortcodes/gallery/02.jpg
Normal file
|
After Width: | Height: | Size: 6.4 MiB |
BIN
exampleSite/content/docs/shortcodes/gallery/03.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
exampleSite/content/docs/shortcodes/gallery/04.jpg
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
exampleSite/content/docs/shortcodes/gallery/05.jpg
Normal file
|
After Width: | Height: | Size: 3.7 MiB |
BIN
exampleSite/content/docs/shortcodes/gallery/06.jpg
Normal file
|
After Width: | Height: | Size: 4.8 MiB |
BIN
exampleSite/content/docs/shortcodes/gallery/07.jpg
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
@@ -167,6 +167,38 @@ Blowfish also supports automatic conversion of images included using standard Ma
|
||||
|
||||
{{< figure src="abstract.jpg" alt="Abstract purple artwork" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}}
|
||||
|
||||
|
||||
## Gallery
|
||||
|
||||
`gallery` allows you to showcase multiple images at once, in a responsive manner with more varied and interesting layouts.
|
||||
|
||||
In order to add images to the gallery, use `img` tags for each image and add `class="grid-wXX"` in order for the gallery to be able to identify the column width for each image. The widths available by default start at 10% and go all the way to 100% in 5% increments. For example, to set the width to 65%, set the class to `grid-w65`. Additionally, widths for 33% and 66% are also available in order to build galleries with 3 cols.
|
||||
|
||||
**Example:**
|
||||
|
||||
```md
|
||||
{{</* gallery */>}}
|
||||
<img src="gallery/01.jpg" class="grid-w33" />
|
||||
<img src="gallery/02.jpg" class="grid-w33" />
|
||||
<img src="gallery/03.jpg" class="grid-w33" />
|
||||
<img src="gallery/04.jpg" class="grid-w33" />
|
||||
<img src="gallery/05.jpg" class="grid-w33" />
|
||||
<img src="gallery/06.jpg" class="grid-w33" />
|
||||
<img src="gallery/07.jpg" class="grid-w33" />
|
||||
{{</* /gallery */>}}
|
||||
```
|
||||
|
||||
{{< gallery >}}
|
||||
<img src="gallery/01.jpg" class="grid-w33" />
|
||||
<img src="gallery/02.jpg" class="grid-w33" />
|
||||
<img src="gallery/03.jpg" class="grid-w33" />
|
||||
<img src="gallery/04.jpg" class="grid-w33" />
|
||||
<img src="gallery/05.jpg" class="grid-w33" />
|
||||
<img src="gallery/06.jpg" class="grid-w33" />
|
||||
<img src="gallery/07.jpg" class="grid-w33" />
|
||||
{{< /gallery >}}
|
||||
|
||||
|
||||
## GitHub Card
|
||||
|
||||
`github` allows you to quickly link a github repository, all while showing and updating in realtime stats about it, such as the number of stars and forks it has.
|
||||
@@ -185,6 +217,7 @@ Blowfish also supports automatic conversion of images included using standard Ma
|
||||
|
||||
{{< github repo="nunocoracao/blowfish" >}}
|
||||
|
||||
|
||||
## Icon
|
||||
|
||||
`icon` outputs an SVG icon and takes the icon name as its only parameter. The icon is scaled to match the current text size.
|
||||
|
||||