Skip to content

Commit

Permalink
Fix css class enable/disable for multiple classes
Browse files Browse the repository at this point in the history
If you enter a space separated string for block or section classes and include no-lazysizes or lazysizes this will be skipped. This PR fixes this.

(cherry picked from commit c0bccca)
  • Loading branch information
kingschnulli authored and tinect committed Mar 11, 2024
1 parent a02f6b9 commit 684c855
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{% set lazysizesThroughCss = null %}
{% for item in [sectionClasses, blockClasses] %}
{% if item is defined %}
{% set item = item|join(' ')|split(' ') %}
{% if 'no-lazysizes' in item %}
{% set lazysizesThroughCss = false %}
{% elseif 'lazysizes' in item %}
Expand Down

0 comments on commit 684c855

Please sign in to comment.