{{- $originalSrc := .Destination | safeURL -}} {{- $localImgPath := path.Join "/site/static/docs" site.Params.docs_version $originalSrc -}} {{- /* This shouldn't be needed but we have a weird folder structure with version included... */ -}} {{- $src := urls.JoinPath "/docs" site.Params.docs_version $originalSrc -}} {{- $config := imageConfig $localImgPath -}} {{- $classes := "d-block img-fluid" -}} {{ .Text }}