From 9b9ceaea16bb10602f09709d06b5549579119d79 Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 13 Sep 2022 23:27:16 +0200 Subject: [PATCH] Suppression de la librairie lozad puisque les navigateurs font maintenant du lazy loading --- config/_default/config.yml | 1 - themes/meghna-hugo/README.md | 1 - themes/meghna-hugo/assets/js/script.js | 7 ------- themes/meghna-hugo/layouts/_default/article.html | 2 +- themes/meghna-hugo/layouts/_default/single.html | 2 +- themes/meghna-hugo/layouts/author/single.html | 6 +++--- themes/meghna-hugo/layouts/partials/banner.html | 2 +- themes/meghna-hugo/layouts/partials/feature.html | 2 +- themes/meghna-hugo/layouts/partials/footer.html | 4 ++-- themes/meghna-hugo/layouts/partials/funfacts.html | 2 +- themes/meghna-hugo/layouts/partials/navigation.html | 2 +- themes/meghna-hugo/layouts/partials/skill.html | 2 +- themes/meghna-hugo/layouts/partials/team.html | 2 +- themes/meghna-hugo/layouts/partials/testimonial.html | 2 +- themes/meghna-hugo/static/plugins/lazy-load/lozad.min.js | 9 --------- 15 files changed, 14 insertions(+), 32 deletions(-) delete mode 100755 themes/meghna-hugo/static/plugins/lazy-load/lozad.min.js diff --git a/config/_default/config.yml b/config/_default/config.yml index 0f627a3..53c90dc 100644 --- a/config/_default/config.yml +++ b/config/_default/config.yml @@ -32,7 +32,6 @@ params: - link: plugins/slick/slick.min.js - link: plugins/shuffle/shuffle.min.js - link: plugins/magnific-popup/jquery.magnific-popup.min.js - - link: plugins/lazy-load/lozad.min.js # - link: plugins/google-map/map.js logo: images/jarnat-logo.svg diff --git a/themes/meghna-hugo/README.md b/themes/meghna-hugo/README.md index 1d7eef5..1317a40 100644 --- a/themes/meghna-hugo/README.md +++ b/themes/meghna-hugo/README.md @@ -121,7 +121,6 @@ share those images. - [Bootstrap](https://getbootstrap.com/docs/4.3/getting-started/introduction/) - [Jquery](https://jquery.com/download/) - [Themify Icons](https://themify.me/themify-icons) -- [Lozad](https://apoorv.pro/lozad.js/) - [Magnific Popup](https://dimsemenov.com/plugins/magnific-popup/) - [Slick Slider](https://kenwheeler.github.io/slick/) - [Shuffle](https://vestride.github.io/Shuffle/) diff --git a/themes/meghna-hugo/assets/js/script.js b/themes/meghna-hugo/assets/js/script.js index 916a0eb..ceaef5b 100644 --- a/themes/meghna-hugo/assets/js/script.js +++ b/themes/meghna-hugo/assets/js/script.js @@ -9,13 +9,6 @@ $(window).on('load', function () { jQuery(function ($) { "use strict"; - /* ========================================================================= */ - /* lazy load initialize - /* ========================================================================= */ - - const observer = lozad(); // lazy loads elements with default selector as ".lozad" - observer.observe(); - /* ========================================================================= */ /* Magnific popup /* ========================================================================= */ diff --git a/themes/meghna-hugo/layouts/_default/article.html b/themes/meghna-hugo/layouts/_default/article.html index e10a781..2086247 100644 --- a/themes/meghna-hugo/layouts/_default/article.html +++ b/themes/meghna-hugo/layouts/_default/article.html @@ -1,7 +1,7 @@
- +
diff --git a/themes/meghna-hugo/layouts/_default/single.html b/themes/meghna-hugo/layouts/_default/single.html index 8100c5b..13ee2b1 100644 --- a/themes/meghna-hugo/layouts/_default/single.html +++ b/themes/meghna-hugo/layouts/_default/single.html @@ -16,7 +16,7 @@ {{ end }} {{ if .Params.Image }} - blog-image + blog-image {{ end }}
diff --git a/themes/meghna-hugo/layouts/author/single.html b/themes/meghna-hugo/layouts/author/single.html index ea3c266..75c4cbc 100644 --- a/themes/meghna-hugo/layouts/author/single.html +++ b/themes/meghna-hugo/layouts/author/single.html @@ -14,10 +14,10 @@
{{ if .Params.Image }} - + {{else if .Params.Email}} - + {{ end }}
diff --git a/themes/meghna-hugo/layouts/partials/banner.html b/themes/meghna-hugo/layouts/partials/banner.html index 4f7ae53..5ab846d 100644 --- a/themes/meghna-hugo/layouts/partials/banner.html +++ b/themes/meghna-hugo/layouts/partials/banner.html @@ -5,7 +5,7 @@ {{"" | safeHTML}}
- +
{{ if .icon }} diff --git a/themes/meghna-hugo/layouts/partials/feature.html b/themes/meghna-hugo/layouts/partials/feature.html index 2d0a333..ea07a7a 100644 --- a/themes/meghna-hugo/layouts/partials/feature.html +++ b/themes/meghna-hugo/layouts/partials/feature.html @@ -8,7 +8,7 @@
- +
diff --git a/themes/meghna-hugo/layouts/partials/footer.html b/themes/meghna-hugo/layouts/partials/footer.html index cec0fd0..d7d5a17 100644 --- a/themes/meghna-hugo/layouts/partials/footer.html +++ b/themes/meghna-hugo/layouts/partials/footer.html @@ -18,11 +18,11 @@ {{"" | safeHTML}}
diff --git a/themes/meghna-hugo/layouts/partials/funfacts.html b/themes/meghna-hugo/layouts/partials/funfacts.html index 0c63e59..dfc4502 100644 --- a/themes/meghna-hugo/layouts/partials/funfacts.html +++ b/themes/meghna-hugo/layouts/partials/funfacts.html @@ -5,7 +5,7 @@ {{"" | safeHTML}}
- +
{{ range .counter_item }} diff --git a/themes/meghna-hugo/layouts/partials/navigation.html b/themes/meghna-hugo/layouts/partials/navigation.html index 681a2dc..e072846 100644 --- a/themes/meghna-hugo/layouts/partials/navigation.html +++ b/themes/meghna-hugo/layouts/partials/navigation.html @@ -4,7 +4,7 @@