templates/slim/video.html.slim in asciidoctor-bespoke-1.0.0.alpha.1 vs templates/slim/video.html.slim in asciidoctor-bespoke-1.0.0.alpha.2
- old
+ new
@@ -18,10 +18,10 @@
- when 'youtube'
- _target = local_attr :target
- _params = ['enablejsapi=1', 'rel=0', 'showinfo=0', 'controls=0', 'disablekb=1']
/ NOTE start and end must be in seconds
- _params << %(start=#{local_attr :start}) if local_attr? :start
- - _params << %(end=#{local_attr :start}) if local_attr? :end
+ - _params << %(end=#{local_attr :end}) if local_attr? :end
- _params += ['loop=1', %(playlist=#{_target})] if option? :loop
- _params << 'fs=0' if option? :nofullscreen
- _params << %(hl=#{document.attr :lang}) if document.attr? :lang
- _src = %(#{asset_uri_scheme}//www.youtube.com/embed/#{_target}?#{_params * '&'})
iframe(src=_src width=(local_attr :width) height=(local_attr :height) frameborder=0