@ -463,8 +463,8 @@ These are the named parameters with positions, listed in the order of their posi
src="https://imgs.xkcd.com/comics/sandwich.png"
link="https://xkcd.com/149"
caption="My caption"
alt="My alt"
title="My title" >}}
title="My title"
alt="My alt" >}}
```
These are the rest of the named parameters:
@ -3,7 +3,7 @@
{{ with $link }}
<a href="{{ . }}">
{{ end }}
<img{{ with (.Get 3 | default (.Get `alt`)) }} alt="{{ . }}"{{ end }} class="figure-img img-fluid"{{ with .Get `height` }} height="{{ . }}"{{ end }} src="{{ .Get 0 | default (.Get `src`) }}"{{ with (.Get 4 | default (.Get `title`)) }} title="{{ . }}"{{ end }}{{ with .Get `width` }} width="{{ . }}"{{ end }}>
<img{{ with (.Get 4 | default (.Get `alt`)) }} alt="{{ . }}"{{ end }} class="figure-img img-fluid"{{ with .Get `height` }} height="{{ . }}"{{ end }} src="{{ .Get 0 | default (.Get `src`) }}"{{ with (.Get 3 | default (.Get `title`)) }} title="{{ . }}"{{ end }}{{ with .Get `width` }} width="{{ . }}"{{ end }}>
{{ if $link }}
</a>