summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/yt.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-03-15 16:38:01 +0100
committermms <michal@sapka.me>2024-03-15 16:38:01 +0100
commit373d8407c7e83b03b0c07204c2ea9ce7bcfd7660 (patch)
treec2b9dc6307f35392cd89420c9f239bdb2a63b7e2 /layouts/shortcodes/yt.html
parenta378a74acd86a5c97c8608f15020bde63afeb78c (diff)
feat: elite:
Diffstat (limited to 'layouts/shortcodes/yt.html')
-rw-r--r--layouts/shortcodes/yt.html12
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>