Remove masonry
This commit is contained in:
parent
be62adeb1f
commit
a3f96f6c08
|
@ -133,7 +133,6 @@ imagemagick:
|
|||
# -----------------------------------------------------------------------------
|
||||
|
||||
enable_google_verification: false
|
||||
enable_masonry: false
|
||||
enable_math: false
|
||||
enable_tooltips: false
|
||||
enable_darkmode: true
|
||||
|
@ -162,9 +161,6 @@ jquery:
|
|||
integrity: "sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
||||
mathjax:
|
||||
version: "3.2.0"
|
||||
masonry:
|
||||
version: "4.2.2"
|
||||
integrity: "sha256-Nn1q/fx0H7SNLZMQ5Hw5JLaTRZp0yILA/FRexe19VdI="
|
||||
mdb:
|
||||
version: "4.20.0"
|
||||
integrity:
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{%- if site.enable_masonry -%}
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/masonry-layout@{{ site.masonry.version }}/dist/masonry.pkgd.min.js" integrity="{{ site.masonry.integrity }}" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
|
||||
<script defer src="{{ '/assets/js/masonry.js' | relative_url }}" type="text/javascript"></script>
|
||||
{%- endif -%}
|
|
@ -20,7 +20,6 @@ layout: parse
|
|||
|
||||
{% include scripts/jquery.html %}
|
||||
{% include scripts/bootstrap.html %}
|
||||
{% include scripts/masonry.html %}
|
||||
{% include scripts/misc.html %}
|
||||
{% include scripts/mathjax.html %}
|
||||
</body>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
$(document).ready(function() {
|
||||
// Init Masonry
|
||||
var $grid = $('.grid').masonry({
|
||||
gutter: 10,
|
||||
horizontalOrder: true,
|
||||
itemSelector: '.grid-item',
|
||||
});
|
||||
// Layout Masonry after each image loads
|
||||
$grid.imagesLoaded().progress( function() {
|
||||
$grid.masonry('layout');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue