re-encode and filter

This commit is contained in:
Christoph Cullmann 2025-07-20 00:09:10 +02:00
parent 16823e27a9
commit f4a8c002cc
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
<center> <center>
{{ $original := .Page.Resources.GetMatch (.Get "src") }} {{ $original := .Page.Resources.GetMatch (.Get "src") }}
{{ $preview := $original.Resize "660x" }} {{ $preview := $original.Resize "700x Lanczos webp" }}
<a href="{{ $original.RelPermalink }}" target="_new" style="border-bottom: 0px; background-color: inherit;"> <a href="{{ $original.RelPermalink }}" target="_new" style="border-bottom: 0px; background-color: inherit;">
<img src="{{ $preview.RelPermalink }}" alt="{{ .Get "alt" }}" style="border: 0px;" /> <img src="{{ $preview.RelPermalink }}" alt="{{ .Get "alt" }}" style="border: 0px;" />
</a> </a>

View file

@ -1,5 +1,5 @@
<center> <center>
<video width="660" preload="auto" controls style="border: 0px;"> <video width="700" preload="auto" controls style="border: 0px;">
<source src="{{ .Get "src" }}" /> <source src="{{ .Get "src" }}" />
Your browser does not seem to support the video {{ .Get "src" }}. Your browser does not seem to support the video {{ .Get "src" }}.
</video> </video>