mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 03:22:33 -06:00
🐛 fixed gallery loading packery problem
This commit is contained in:
parent
5d8c456ba7
commit
482204a0ba
2 changed files with 8 additions and 12 deletions
|
@ -6,15 +6,11 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
setTimeout(() => {
|
||||
var elem = document.querySelector('#{{ $id }}');
|
||||
var pckry = new Packery(elem, {
|
||||
percentPosition: true,
|
||||
gutter: 5,
|
||||
resize: true
|
||||
});
|
||||
}, 50)
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$('#{{ $id }}').packery({
|
||||
percentPosition: true,
|
||||
gutter: 5,
|
||||
resize: true
|
||||
});
|
||||
})
|
||||
</script>
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hugo-blowfish-theme",
|
||||
"version": "2.30.0",
|
||||
"version": "2.31.0",
|
||||
"description": "Blowfish theme for Hugo",
|
||||
"scripts": {
|
||||
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
|
||||
|
|
Loading…
Reference in a new issue