{{ range slice "aoidh.css" "fonts/et-book/et-book.css" }} {{- with resources.Get . }}{{ end }} {{ end }} {{- range $style := slice "roman-line-figures" "display-italic-old-style-figures" "bold-line-figures" }} {{- range $fmt := slice "eot" "woff" "ttf" "svg" }} {{- $font := printf "fonts/et-book/et-book/et-book-%s/et-book-%s.%s" $style $style $fmt }} {{- with resources.Get $font }}{{ .Publish }} {{- else }}{{ errorf "font not found: %s" $font }}{{ end }} {{- end -}} {{- end -}}