new posts and layouts from thailand

This commit is contained in:
2024-04-05 16:45:07 +02:00
parent 7e7deef055
commit 6c14bd9e35
101 changed files with 242 additions and 72472 deletions
@@ -0,0 +1,13 @@
{{- $image := .Page.Resources.GetMatch .Destination -}}
{{- if $image -}}
{{ $image_resize := $image.Resize "1024x webp q80" }}
<div class="flex justify-center">
<a href="{{- $image.RelPermalink -}}">
<img loading="lazy" src="{{ $image_resize.RelPermalink }}" alt="{{ .Text }}" class="max-h-96">
</a>
</div>
{{- else -}}
<img loading="lazy" class="img-fluid" src="{{ .Destination | safeURL }}" {{ with .Text}} alt="{{ . }}" {{ else }} alt="{{ .Page.Title }}" {{ end }} {{ with .Title}} title="{{ . }}"{{ end }} />
<p>Fallback</p>
{{- end -}}