diff --git a/index.hbs b/index.hbs index 28a5fd4..9d8df93 100644 --- a/index.hbs +++ b/index.hbs @@ -40,13 +40,13 @@ into the {body} of the default.hbs template --}} {{/if}}
{{#if feature_image}} -
+
{{/if}}
{{#if primary_author.profile_image}} -
+
{{else}}
{{/if}} diff --git a/package.json b/package.json index 24e2f93..558b500 100644 --- a/package.json +++ b/package.json @@ -54,5 +54,5 @@ "desktop": "assets/screenshot-desktop.jpg", "mobile": "assets/screenshot-mobile.jpg" }, - "version": "0.5.6" + "version": "0.5.7" } diff --git a/page-authors.hbs b/page-authors.hbs index 10c1179..f08191b 100644 --- a/page-authors.hbs +++ b/page-authors.hbs @@ -28,7 +28,7 @@ into the {body} of the default.hbs template --}} {{#foreach authors}}
{{#if feature_image}} -
+
{{else}}
{{/if}} diff --git a/partials/loop.hbs b/partials/loop.hbs index c83da52..8cdeb79 100644 --- a/partials/loop.hbs +++ b/partials/loop.hbs @@ -6,7 +6,7 @@ {{/is}} {{#if feature_image}}
-
+
{{else}}
@@ -14,7 +14,7 @@ {{#if primary_author.profile_image}} -
+
{{else}}
{{/if}} diff --git a/src/js/app.js b/src/js/app.js index fc13f88..51647eb 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -205,7 +205,11 @@ $(document).ready(() => { $('[data-aos]').addClass('no-aos-animation') } - const observer = lozad() + const observer = lozad('.lozad', { + loaded: (el) => { + el.classList.add('loaded') + } + }) observer.observe() tippy('.js-tooltip') diff --git a/src/sass/common/_global.scss b/src/sass/common/_global.scss index 80e8912..875a1d5 100644 --- a/src/sass/common/_global.scss +++ b/src/sass/common/_global.scss @@ -59,8 +59,8 @@ fieldset { z-index: 5; } -div[data-loaded="true"], -img[data-loaded="true"] { +div.lozad.loaded, +img.lozad.loaded { opacity: 0; @include animation('fadeIn 0.5s forwards'); @include keyframes(fadeIn) {