From 678e2c0053c6f3780017ce6fe80c42da9b4171fd Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sat, 8 Jun 2024 12:27:04 +0800 Subject: [PATCH] :sparkles: Feat: add spotify shortcode support (resolve #450) --- layouts/shortcodes/spotify.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 layouts/shortcodes/spotify.html diff --git a/layouts/shortcodes/spotify.html b/layouts/shortcodes/spotify.html new file mode 100644 index 00000000..47faff14 --- /dev/null +++ b/layouts/shortcodes/spotify.html @@ -0,0 +1,6 @@ +{{- $type := cond .IsNamedParams (.Get "type") (.Get 0) -}} +{{- $id := cond .IsNamedParams (.Get "id") (.Get 1) -}} +{{- $width := cond .IsNamedParams (.Get "width") (.Get 2) -}} +{{- $height := cond .IsNamedParams (.Get "height") (.Get 3) -}} + +{{- /* EOF */ -}} \ No newline at end of file