Gallery shortcode for Hugo. Fork of Li-Wen Yip's Easy Gallery
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gallery.html 397B

1234567891011
  1. <!--
  2. SPDX-FileCopyrightText: 2020 Max Mehl <mail@mehl.mx>
  3. SPDX-License-Identifier: MIT
  4. -->
  5. <!-- count how many times we've called this shortcode; load the css if it's the first time -->
  6. {{- .Page.Scratch.Add "gallery" 1 -}}
  7. <div class="snap-gallery">
  8. {{ .Inner }}
  9. </div>
  10. <!-- delete count of gallery figures (but not those of standalone figures -->
  11. {{- .Page.Scratch.Delete "thisgalfig" -}}