{{- $name := . -}} {{- $mapped := index site.Params.slugs $name -}} {{- if $mapped -}} {{- $mapped -}} {{- else -}} {{- $ascii := lower (replaceRE "[^a-z0-9]+" "-" $name) -}} {{- $ascii = trim $ascii "-" -}} {{- if $ascii -}}{{- $ascii -}}{{- else -}}item{{- end -}} {{- end -}}