From 4fc918e02cfc7f260d6312248ff9d33e95b27943 Mon Sep 17 00:00:00 2001 From: Andrew Zenk Date: Wed, 2 Dec 2020 05:53:53 -0600 Subject: tpl: Add title parameter to YouTube shortcode --- hugolib/embedded_shortcodes_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hugolib') diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index a998b85b7..b8acb2d80 100644 --- a/hugolib/embedded_shortcodes_test.go +++ b/hugolib/embedded_shortcodes_test.go @@ -184,6 +184,11 @@ func TestShortcodeYoutube(t *testing.T) { `{{< youtube id="w7Ft2ymGmfc" class="video" autoplay="true" >}}`, "(?s)\n
.*?.*?
", }, + // set custom title for accessability) + { + `{{< youtube id="w7Ft2ymGmfc" title="A New Hugo Site in Under Two Minutes" >}}`, + "(?s)\n
.*?.*?
", + }, } { var ( cfg, fs = newTestCfg() -- cgit v1.2.3