github.com/neohugo/neohugo@v0.123.8/tpl/tplimpl/embedded/templates/_default/_markup/render-image.html (about)

     1  {{- $u := urls.Parse .Destination -}}
     2  {{- $src := $u.String -}}
     3  {{- if not $u.IsAbs -}}
     4    {{- with or (.Page.Resources.Get $u.Path) (resources.Get $u.Path) -}}
     5      {{- $src = .RelPermalink -}}
     6    {{- end -}}
     7  {{- end -}}
     8  {{- $attributes := merge .Attributes (dict "alt" .Text "src" $src "title" .Title) -}}
     9  <img
    10    {{- range $k, $v := $attributes -}}
    11      {{- if $v -}}
    12        {{- printf " %s=%q" $k $v | safeHTMLAttr -}}
    13      {{- end -}}
    14    {{- end -}}>
    15  {{- /**/ -}}