tpl: Add optional "title" attribute to iframe in Vimeo shortcode
authorZach Bayoff <30878344+zbayoff@users.noreply.github.com>
Sat, 12 Oct 2019 16:10:14 +0000 (12:10 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 12 Oct 2019 16:10:14 +0000 (18:10 +0200)
commit7b3edc293144dd450e87ca32f238221c21eb1b47
tree7848f4b278cc933834d754cb78a9f87d059bf188
parent65b7d4221b90445bfc089873092411cf7e322933
tpl: Add optional "title" attribute to iframe in Vimeo shortcode

Add an optional "title" attribute to the iframe in the vimeo shortcode. If one is not given, the title attribute will default to "vimeo video". It is imperative for iframes to have a non-empty "title" attribute in order to meet WCAG2.0 accessibility guidelines https://www.w3.org/TR/WCAG20-TECHS/H64.
docs/content/en/content-management/shortcodes.md
hugolib/embedded_shortcodes_test.go
tpl/tplimpl/embedded/templates.autogen.go
tpl/tplimpl/embedded/templates/shortcodes/vimeo.html