{{- with .Params.LastModifierDisplayName }} {{ with $.Params.LastModifierEmail }}{{ end }}{{ . }}{{ with $.Params.LastModifierEmail }}{{ end }} {{- with $.Date }} {{ . | time.Format ":date_medium" }} {{- end }} {{- end }} {{- $page := . }} {{- if .Params.categories }} {{- $categories := slice | append .Params.categories }} {{- range $idx, $category := sort $categories }} {{- with $page.Site.GetPage (printf "%s%s" ("/categories/" | relURL ) ( $category | plainify | anchorize ) ) }} {{- $to := . }} {{ if gt $idx 0 }} | {{ end }}{{ $category }} {{- end }} {{- end }} {{- end }}