This repository has been archived on 2024-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-02 11:21:30 +00:00
|
|
|
{{- $src := default (.Get 0) (.Get "src") }}
|
|
|
|
{{- if not $src }}
|
|
|
|
{{- errorf "missing value for 'src': %s" .Position }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $alt := default (.Get 1) (.Get "alt") }}
|
|
|
|
{{- if not $alt }}
|
|
|
|
{{- errorf "missing value for 'alt': %s" .Position }}
|
|
|
|
{{- end }}
|
|
|
|
{{- $img := resources.Get $src | resources.Fingerprint }}
|
|
|
|
<p>
|
2023-01-01 16:41:38 +00:00
|
|
|
<img class="centered" src="{{ $img.RelPermalink }}" alt="{{ $alt }}">
|
2021-10-02 11:21:30 +00:00
|
|
|
</p>
|