Since I am a bit new to Hugo’s Go templating, I just wanted someone to look this loop over to import CSS from the assets/css/
directory. Does this look okay or could it be done better?
{{- range slice "css/main.css" "css/syntax.css" "css/phosphor.css" -}}
{{- with resources.Get . -}}
{{ if hugo.IsDevelopment -}}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else -}}
{{- with . | minify | fingerprint -}}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}