Make type and preload a default

This commit is contained in:
2024-08-13 01:24:57 +02:00
parent 6149e50baa
commit 0944b4967f
6 changed files with 7 additions and 7 deletions

View File

@ -84,7 +84,7 @@ primordial soup that was my room on Sunday in this [[init post]({{< ref "init" >
further ado, here's the room now, I even opened one of the closet doors to prove that I didn't just
stuff the whole shebang in there, it wouldn't have fit anyway. Here goes:
{{< video src="/media/vdo/IMG_0469_0.mp4" type="video/mp4" preload="auto" >}}
{{< video src="/media/vdo/IMG_0469_0.mp4" >}}
To celebrate, Marina asks me if I want to go say hi to the _Floofchickens_, which is a little
chicken coop in a farmyard about a kilometer from our house. We visit the _Floofs_ very often, but

View File

@ -55,7 +55,7 @@ house for a year or so. I now need that corner, because it's going to be turned
facility, as it'll enable me to offload all the crap in my current working room, which is sprinkled
all over the floor currently.
{{< video src="/media/vdo/IMG_0406_0.mp4" type="video/mp4" preload="auto" >}}
{{< video src="/media/vdo/IMG_0406_0.mp4" >}}
I spend the morning continuing to mapreduce over the mess. It's funny how in my cleaning algorithm,
first everything gets exploded into many piles of adjacently relevant things: power cables in a

View File

@ -43,7 +43,7 @@ mic stand. My first print is a bit off, there's not enough clearance between the
micstand, so it can't swivel freely. So I make a small modification, and print two brackets, one for
use now and one as a spare. The mic arm works pretty well and has lots of degrees of freedom:
{{< video src="/media/vdo/IMG_0554_23.4.15.mp4" type="video/mp4" preload="auto" >}}
{{< video src="/media/vdo/IMG_0554_23.4.15.mp4" >}}
After this small task, I send Marina an IM asking her about Gin&Tonic. She answers "Not yet, cutting
with the Cameo", followed a few minutes later with "Failure. Booze!!", so I mix us some Blood Orange

View File

@ -76,7 +76,7 @@ programmed into the Stream Deck (see pic below). I'm chuffed, to bits, and I rec
showing off the configs and controls and (really beautiful, it really feels as if I'm in a
professional studio) audio and video that OBS provides:
{{< video src="/media/vdo/2024-08-08_20-30-06_20.35.18.mp4" type="video/mp4" preload="auto" >}}
{{< video src="/media/vdo/2024-08-08_20-30-06_20.35.18.mp4" >}}
At 22:00 I have a call with my buddy Alessandro from [[Naquadria](https://www.naquadria.it/)]. I
met him in Athens a few months ago and we really connected on account of my desire to connect local

View File

@ -75,7 +75,7 @@ the house I could still see some blue skies, but there was a thundercloud right
lots of scattered sheet lightning. I also looked in the front of the house, where it was pitch black
and heavy winds were chasing through our _cul-de-sac_. Wow! Here's a little video from the backyard:
{{< video src="/media/vdo/IMG_0623_0.12.56.mp4" type="video/mp4" preload="auto" >}}
{{< video src="/media/vdo/IMG_0623_0.12.56.mp4" >}}
I finally finish my article - I do this somewhat _Inception_ style, with filming a video of me
submitting the website, and seeing it being automatically built by Drone and pushed to the NGINX

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>