This commit is contained in:
2023-01-08 10:08:24 +01:00
parent e9da8a87be
commit fa2d0f36fa
67 changed files with 2808 additions and 1697 deletions

View File

@ -4,6 +4,7 @@ NB this overrides Hugo's built-in "figure" shortcode but is backwards compatible
Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
-->
<!-- count how many times we've called this shortcode; load the css if it's the first time -->
<link rel="stylesheet" href={{ "css/hugo-easy-gallery.css" | relURL }} />
{{- if not ($.Page.Scratch.Get "figurecount") }}<link rel="stylesheet" href={{ "css/hugo-easy-gallery.css" | relURL }} />{{ end }}
{{- $.Page.Scratch.Add "figurecount" 1 -}}
<!-- use either src or link-thumb for thumbnail image -->