Luna Stadler лет назад: 4
Родитель
Сommit
993612c07e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      go/blog/blog.go

+ 1 - 1
go/blog/blog.go

624
<article id="{{ .Id }}" class="{{ .Type }}" {{- if .Tags }} data-tags="{{ json .Tags }}"{{ end }}>
624
<article id="{{ .Id }}" class="{{ .Type }}" {{- if .Tags }} data-tags="{{ json .Tags }}"{{ end }}>
625
	{{- template "title" . }}
625
	{{- template "title" . }}
626
	{{ if (eq .Provider "youtube" "vimeo") -}}
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
	{{- else if (eq .Provider "native") -}}
628
	{{- else if (eq .Provider "native") -}}
629
	<video src="{{ safe_url .URL }}" controls></video>
629
	<video src="{{ safe_url .URL }}" controls></video>
630
	{{- end }}
630
	{{- end }}