From 9c7e73646c8d97446add38b39e1aaa0ed8a4da74 Mon Sep 17 00:00:00 2001 From: zhixuan <59254886+zhixuan2333@users.noreply.github.com> Date: Fri, 27 Aug 2021 01:50:03 +0900 Subject: [PATCH] feat(article): add positional parameter for `video` shortcode (#331) --- layouts/shortcodes/video.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html index 733761a..5324754 100644 --- a/layouts/shortcodes/video.html +++ b/layouts/shortcodes/video.html @@ -1,13 +1,14 @@ +{{- $src := .Get "src" | default (.Get 0) -}}