Merge branch 'master' of gitlab.com:gabmus/hugo-ficurinia

This commit is contained in:
Gabriele Musco 2022-10-24 08:04:55 +02:00
commit bcff415581
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
4 changed files with 8 additions and 6 deletions

View file

@ -15,9 +15,9 @@
{{ if .Params.Image }}
<figure style="margin: 0">
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
<img src="{{ .Params.Image }}" />
<img src="{{ .Params.Image }}" alt="{{ .Params.Alt }}" />
{{ else }}
<img src="/{{ path.Join .File.Dir .Params.Image }}" />
<img src="/{{ path.Join .File.Dir .Params.Image }}" alt="{{ .Params.Alt }}" />
{{ end }}
{{ if .Params.ImageCaption }}
<figcaption>