| 1 |
{{- with resources.Get "css/main.css" }} |
| 2 |
{{- $opts := dict |
| 3 |
"minify" (cond hugo.IsDevelopment false true) |
| 4 |
"sourceMap" (cond hugo.IsDevelopment "linked" "none") |
| 5 |
}} |
| 6 |
{{- with . | css.Build $opts }} |
| 7 |
{{- if hugo.IsDevelopment }} |
| 8 |
<link rel="stylesheet" href="{{ .RelPermalink }}"> |
| 9 |
{{- else }} |
| 10 |
{{- with . | fingerprint }} |
| 11 |
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> |
| 12 |
{{- end }} |
| 13 |
{{- end }} |
| 14 |
{{- end }} |
| 15 |
{{- end }} |