|
|
@ -624,7 +624,7 @@ var videoTmpl = template.Must(baseTmpl.New("video").Parse(`
|
|
624
|
624
|
<article id="{{ .Id }}" class="{{ .Type }}" {{- if .Tags }} data-tags="{{ json .Tags }}"{{ end }}>
|
|
625
|
625
|
{{- template "title" . }}
|
|
626
|
626
|
{{ if (eq .Provider "youtube" "vimeo") -}}
|
|
627
|
|
<iframe width="560" height="315" src="{{ safe_url .URL }}" frameborder="0" allowfullscreen></iframe>
|
|
|
627
|
<iframe width="560" height="315" src="{{ safe_url .URL }}" frameborder="0" allowfullscreen loading="lazy"></iframe>
|
|
628
|
628
|
{{- else if (eq .Provider "native") -}}
|
|
629
|
629
|
<video src="{{ safe_url .URL }}" controls></video>
|
|
630
|
630
|
{{- end }}
|