Make preload and type the default
This commit is contained in:
@ -449,4 +449,4 @@ The results are really cool, as I'll demonstrate in this video. I can just submi
|
|||||||
change, and it'll automatically kick off a build and push. Take a look at this video which was
|
change, and it'll automatically kick off a build and push. Take a look at this video which was
|
||||||
performed in real time as I pushed this very article live:
|
performed in real time as I pushed this very article live:
|
||||||
|
|
||||||
{{< video src="https://ipng.ch/media/vdo/hugo-drone.mp4" type="video/mp4" preload="auto" >}}
|
{{< video src="https://ipng.ch/media/vdo/hugo-drone.mp4" >}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<video class="video-shortcode" preload="{{ .Get "preload" }}" controls>
|
<video class="video-shortcode" preload="{{ .Get "preload" | default "auto" }}" controls>
|
||||||
<source src="{{ .Get "src" }}" type="{{ .Get "type" }}">
|
<source src="{{ .Get "src" }}" type="{{ .Get "type" | default "video/mp4" }}">
|
||||||
There should have been a video here but your browser does not seem
|
There should have been a video here but your browser does not seem
|
||||||
to support it.
|
to support it.
|
||||||
</video>
|
</video>
|
||||||
|
Reference in New Issue
Block a user