Aggiunto shortcode img per didascalie fatte meglio #365

Merged
amreo merged 4 commits from amreo/bglug.it:main into main 2025-04-08 20:05:12 +00:00
Showing only changes of commit 38de799447 - Show all commits

@ -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" }}