Merge pull request #738 from MaikelChan/gallery-fixes

Gallery fixes.
This commit is contained in:
Nuno Coração 2023-05-24 21:24:03 +01:00 committed by GitHub
commit 616ebd1cf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,11 @@
{{ $time := now.UnixNano }} {{ $id := delimit (slice "gallery" .Ordinal) "-" }}
{{ $id := delimit (slice "gallery" .Ordinal $time) "-" }}
<div id="{{ $id }}"> <div id="{{ $id }}">
{{ .Inner }} {{ .Inner }}
</div> </div>
<script> <script>
$(document).ready(function () { $(window).on("load", function () {
$('#{{ $id }}').packery({ $('#{{ $id }}').packery({
percentPosition: true, percentPosition: true,
gutter: 5, gutter: 5,