diff options
Diffstat (limited to 'layouts/shortcodes/yt.html')
-rw-r--r-- | layouts/shortcodes/yt.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/layouts/shortcodes/yt.html b/layouts/shortcodes/yt.html index 5c4ea21..a6298ef 100644 --- a/layouts/shortcodes/yt.html +++ b/layouts/shortcodes/yt.html @@ -1,3 +1,4 @@ +{{- $caption := .Inner }} {{- $id := .Get 0 }} {{- $title := .Inner }} {{- $path := printf "ytcovers/%s.jpg" $id}} @@ -6,7 +7,7 @@ {{- $img2x := $img.Resize "x600 webp q90" }} <figure> - <a href="https://www.youtube.com/watch?v={{$id}}" target="_blank"> + <a href="https://redirect.invidious.io/watch?v={{$id}}" target="_blank"> <img class="center" src="{{ $img1x.Permalink }}" @@ -19,4 +20,13 @@ alt="{{$title}} on Youtube" > </a> + <figcaption> + {{ $caption }} + <br> + [watch on: + <a href="https://redirect.invidious.io/watch?v={{$id}}" target="_blank">Invidous</a> | + <a href="https://piped.video/watch?v={{$id}}" target="_blank">Piped</a> | + <a href="https://www.youtube.com/watch?v={{$id}}" target="_blank">Youtube</a> + ] + </figcaption> </figure> |