mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-28 12:41:36 -05:00
Finish video embed support
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
<img src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
||||
{{ else if eq .ResourceType "video" }}
|
||||
<video controls preload="metadata">
|
||||
{{/* FIXME
|
||||
<source src="{{ .Permalink }}" {{ with .Params.alt }}alt="{{ . }}"{{ end }} />
|
||||
*/}}
|
||||
{{ with .Params.alt }}
|
||||
{{ warnf "video does not support alt text, '%s'" . }}
|
||||
{{ end }}
|
||||
<source src="{{ .Permalink }}" />
|
||||
{{ i18n "browser_no_video_support" }}
|
||||
<a href="{{ .Permalink }}" target="_blank" rel="noopener">
|
||||
{{ i18n "browser_no_video_support_link" }}
|
||||
</a>
|
||||
</video>
|
||||
{{ else }}
|
||||
{{/* TODO: could consider implementing more types, listed at:
|
||||
|
Reference in New Issue
Block a user