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>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
$('#{{ $id }}').packery({
|
||||||
setTimeout(() => {
|
percentPosition: true,
|
||||||
var elem = document.querySelector('#{{ $id }}');
|
gutter: 5,
|
||||||
var pckry = new Packery(elem, {
|
resize: true
|
||||||
percentPosition: true,
|
});
|
||||||
gutter: 5,
|
})
|
||||||
resize: true
|
|
||||||
});
|
|
||||||
}, 50)
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-blowfish-theme",
|
"name": "hugo-blowfish-theme",
|
||||||
"version": "2.30.0",
|
"version": "2.31.0",
|
||||||
"description": "Blowfish theme for Hugo",
|
"description": "Blowfish theme for Hugo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
|
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
|
||||||
|
|
Loading…
Reference in a new issue