diff options
author | mms <michal@sapka.me> | 2024-03-15 16:38:01 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-03-15 16:38:01 +0100 |
commit | 373d8407c7e83b03b0c07204c2ea9ce7bcfd7660 (patch) | |
tree | c2b9dc6307f35392cd89420c9f239bdb2a63b7e2 /layouts/shortcodes/yt.html | |
parent | a378a74acd86a5c97c8608f15020bde63afeb78c (diff) |
feat: elite:
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> |