diff options
Diffstat (limited to 'layouts/shortcodes/youtube.html')
-rw-r--r-- | layouts/shortcodes/youtube.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html index c29eed1..7e175c5 100644 --- a/layouts/shortcodes/youtube.html +++ b/layouts/shortcodes/youtube.html @@ -5,20 +5,18 @@ {{- $img1x := $img.Resize "x300 webp q90" }} {{- $img2x := $img.Resize "x600 webp q90" }} -<center> +<figure> <a href="https://www.youtube.com/watch?v={{$id}}" target="_blank"> <img class="center" src="{{ $img1x.Permalink }}" srcset=" - {{ $img1x.RelPermalink }} 1x, - {{ $img2x.RelPermalink }} 2x, - " + {{ $img1x.RelPermalink }} 1x, + {{ $img2x.RelPermalink }} 2x + " width="{{ $img1x.Width }}" height="{{ $img1x.Height }}" alt="{{$title}} on Youtube" - width="{{$img.Width}}" - height="{{$img.Height}}" - /> + > </a> -</center> +</figure> |