From c6fa6b7cd6a614b08727df614cbef15f032b9a67 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sun, 31 Dec 2023 12:14:00 +0100 Subject: [PATCH] update video shortcodes --- layouts/shortcodes/peertube.html | 7 +++++++ layouts/shortcodes/video.html | 16 ++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 layouts/shortcodes/peertube.html diff --git a/layouts/shortcodes/peertube.html b/layouts/shortcodes/peertube.html new file mode 100644 index 0000000..0a7251b --- /dev/null +++ b/layouts/shortcodes/peertube.html @@ -0,0 +1,7 @@ +{{- $id := .Get "id" | default (.Get 0) -}} +{{- $class := .Get "class" | default (.Get 1) -}} +{{- $title := .Get "title" | default "Shared video" }} +
+ +
+ diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html index 0a7251b..1bdc90e 100644 --- a/layouts/shortcodes/video.html +++ b/layouts/shortcodes/video.html @@ -1,7 +1,15 @@ -{{- $id := .Get "id" | default (.Get 0) -}} -{{- $class := .Get "class" | default (.Get 1) -}} +{{- $src := .Get "src" | default (.Get 0) -}} {{- $title := .Get "title" | default "Shared video" }} -
- +
+