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 $time) "-" }}
{{ $id := delimit (slice "gallery" .Ordinal) "-" }}
<div id="{{ $id }}">
{{ .Inner }}
</div>
<script>
$(document).ready(function () {
$(window).on("load", function () {
$('#{{ $id }}').packery({
percentPosition: true,
gutter: 5,