Merge branch 'master' of gitlab.com:gabmus/hugo-ficurinia
This commit is contained in:
commit
bcff415581
4 changed files with 8 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue