diff --git a/Dockerfile b/Dockerfile index f107b0ac2f..e1bb1a84a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,14 @@ FROM boltdesignsystem/bolt-docker:latest # @todo replace with `boltdesignsystem/bolt-docker:latest` once that is configured correctly +# RUN php -m +# RUN sudo apt-get install --no-install-recommends -y php7.2-gd +# RUN echo "extension=.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini +# RUN php -m + WORKDIR /app COPY . . EXPOSE 3123 -RUN composer global require hirak/prestissimo +# RUN composer global require hirak/prestissimo RUN yarn run setup RUN yarn run build diff --git a/packages/components/bolt-image/src/image.twig b/packages/components/bolt-image/src/image.twig index 7ab7b93447..26f89b1a2b 100644 --- a/packages/components/bolt-image/src/image.twig +++ b/packages/components/bolt-image/src/image.twig @@ -83,6 +83,11 @@ }} /> {% endset %} +{% set children %} + {{ ext == "jpg" ? imagePlaceholder : "" }} + {{ imageTag }} +{% endset %} + {% block image_content %} {% if width > 0 and height > 0 and useAspectRatio == true %} @@ -90,10 +95,7 @@ attributes: attributes, aspectRatioHeight: height * 1, aspectRatioWidth: width * 1, - children: [ - ext == "jpg" ? imagePlaceholder : "", - imageTag, - ] | join("") + children: children } only %} {% else %} {{ ext == "jpg" ? imagePlaceholder : "" }}