Shader blog post

This commit is contained in:
Dan 2026-02-15 15:02:26 +00:00
parent ea9d49d967
commit ff56875de9
7 changed files with 279 additions and 14 deletions

View file

@ -1,8 +1,29 @@
{{ $src := .Get "src" }}
{{ with .Page.Resources.GetMatch $src }}
<div style="text-align: center;">
<video autoplay loop muted playsinline>
<source src="{{ .RelPermalink }}" type="{{ .MediaType }}">
{{ $src := .Get "src" }} {{ $caption := .Get "caption" }} {{ with
.Page.Resources.GetMatch $src }}
<div style="text-align: center; position: relative; z-index: 4">
<video
autoplay
loop
muted
playsinline
style="position: relative; z-index: 4; max-width: 100%; height: auto"
>
<source src="{{ .RelPermalink }}" type="{{ .MediaType }}" />
</video>
{{ with $caption }}
<div
style="
font-style: italic;
margin-top: 0.5rem;
padding-bottom: 1rem;
font-size: 0.9rem;
opacity: 0.9;
max-width: 60%;
margin: auto;
"
>
{{ . }}
</div>
{{ end }}
</div>
{{ end }}