feat: support .webm videos in Video Shortcode

Close #1226
This commit is contained in:
George Cushen committed 2019-07-27 21:07:12 +01:00
1 parent 835d3d76c0
commit e24de2a2ca
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@
{{ end }}
{{ $video := printf "%s%s" $path (.Get "src") }}
{{ $video_type := substr (.Get "src") -1 3 }}
{{ $video_type := strings.TrimPrefix "." (path.Ext (.Get "src")) }}
{{ if .Get "library" }}
{{ $video = $video | relURL }}
{{ end }}