Make preload and type the default

This commit is contained in:
2024-08-13 01:26:43 +02:00
parent 8b23bba61d
commit d8c36e5077
2 changed files with 3 additions and 3 deletions

View File

@ -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
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" >}}

View File

@ -1,5 +1,5 @@
<video class="video-shortcode" preload="{{ .Get "preload" }}" controls>
<source src="{{ .Get "src" }}" type="{{ .Get "type" }}">
<video class="video-shortcode" preload="{{ .Get "preload" | default "auto" }}" controls>
<source src="{{ .Get "src" }}" type="{{ .Get "type" | default "video/mp4" }}">
There should have been a video here but your browser does not seem
to support it.
</video>