Skip to content
Discussion options

You must be logged in to vote

@jasonvarga Thanks! That got me pointing in the right direction. If I do it the way you suggest this is what I get rendered out:
<img src="/[{}]" srcset="/[{}] 1x,/[{}] 2x" class="c-feature-secondary__tile-image" alt="">

If instead I do:

          {{ image }}
            <img
              src="{{ glide:url width="580" height="320" fit="crop_focal" dpr="1" }}"
              srcset="{{ glide:url width="580" height="320" fit="crop_focal" dpr="2" }} 2x"
              class="c-feature-secondary__tile-image"
              alt="{{ alt }}"
            >
          {{ /image }}

then everything works as expected. Thoughts? I will say that this is a partial and the image is part of a replicator field.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@kbarkhurst
Comment options

Comment options

You must be logged in to vote
2 replies
@jasonvarga
Comment options

@enxoco
Comment options

Answer selected by jasonvarga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants