1
0
forked from BgLUG/bglug.it
This commit is contained in:
Paolo Asperti 2025-04-08 21:50:28 +02:00
parent 2b9362aef6
commit 38de799447
Signed by untrusted user: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -1,5 +1,7 @@
<div>
<img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
{{- $imgsrc := .Page.Resources.GetMatch (.Get "src") -}}
<img src="{{ $imgsrc.RelPermalink }}" alt="{{ .Get "alt" }}" title="{{ .Get "title" }}">
<figcaption>
{{ if strings.HasPrefix (.Get "source") "http" }}