Several fixes for youtube figures
This commit is contained in:
parent
27c1a84ee4
commit
ccedb4c2bd
2 changed files with 11 additions and 10 deletions
|
@ -4,7 +4,7 @@
|
|||
{{- $id := .Get "id" | default (.Get 0) -}}
|
||||
{{- $class := .Get "class" | default (.Get 1) -}}
|
||||
{{- $title := .Get "title" | default "YouTube Video" }}
|
||||
<figure class="figure--youtube{{ with $class }} {{ . }}{{ end }}">
|
||||
<figure class="figure{{ with $class }} {{ . }}{{ end }}">
|
||||
<div class="youtube">
|
||||
<iframe src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" allowfullscreen frameborder=0 title="{{ $title }}"></iframe>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue