diff options
author | Michał M. Sapka <michal@sapka.me> | 2023-03-03 10:52:35 +0100 |
---|---|---|
committer | Michał M. Sapka <michal@sapka.me> | 2023-03-03 10:52:35 +0100 |
commit | d21e833113ce31245b4e96d761227a2aa9dfcb71 (patch) | |
tree | 80c705bbb8340e1680ed841282555648a6f16232 /layouts/shortcodes/youtube.html | |
parent | df1726590fb9a7a16325e881682246bf27f4941c (diff) |
chore: valid HTML verified <3
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> |