From 952595090badbd00d3f89990eab106928582a4e5 Mon Sep 17 00:00:00 2001 From: Karel-Jan Van Haute Date: Thu, 18 Apr 2024 11:22:37 +0200 Subject: [PATCH] Use responsive images / sourceset for Youtube thumbnails? Fixes #297 --- templates/_site/_snippet/_content/_blocks/_textVideo.twig | 7 ++++--- templates/_site/_snippet/_content/_blocks/_video.twig | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/templates/_site/_snippet/_content/_blocks/_textVideo.twig b/templates/_site/_snippet/_content/_blocks/_textVideo.twig index a8b49b4e..74cfbb87 100644 --- a/templates/_site/_snippet/_content/_blocks/_textVideo.twig +++ b/templates/_site/_snippet/_content/_blocks/_textVideo.twig @@ -14,19 +14,20 @@ {% if craft.imageOptimize.serverSupportsWebP() and image.extension != 'svg' and image.extension != 'gif' %} {% endif %} {% else %} {% if embed.type == "youtube" %} - + {% endif %} {% if embed.type == "vimeo" %} diff --git a/templates/_site/_snippet/_content/_blocks/_video.twig b/templates/_site/_snippet/_content/_blocks/_video.twig index 384cc20b..5aae8c48 100644 --- a/templates/_site/_snippet/_content/_blocks/_video.twig +++ b/templates/_site/_snippet/_content/_blocks/_video.twig @@ -10,19 +10,20 @@ {% if craft.imageOptimize.serverSupportsWebP() and image.extension != 'svg' and image.extension != 'gif' %} {% endif %} {% else %} {% if embed.type == "youtube" %} - + {% endif %} {% if embed.type == "vimeo" %}