{{- $context := .context }} {{- $src := .src }} {{- $id := cond (or (eq .id nil) (eq .id "")) (partial "make-random-md5.hugo" $context) .id }} {{- with $context }} {{- with .Resources.Match $src }} {{- range . }} {{- $src = .RelPermalink }} {{- end }} {{- end }}