use placeholder in range expression

This commit is contained in:
John Bowdre 2024-08-05 21:01:14 -05:00
parent 7b096314bf
commit 0ad5838e9c

View file

@ -4,7 +4,7 @@
{{- errorf "%s" . -}} {{- errorf "%s" . -}}
{{- else -}} {{- else -}}
{{- $robots := unmarshal .Content -}} {{- $robots := unmarshal .Content -}}
{{- range $botname, $props := $robots }} {{- range $botname, $_ := $robots }}
{{- printf "User-agent: %s\n" $botname }} {{- printf "User-agent: %s\n" $botname }}
{{- end }} {{- end }}
{{- printf "Disallow: /\n" }} {{- printf "Disallow: /\n" }}