2024-06-18 19:04:31 -04:00
|
|
|
{{- with resources.Get "css/main.css" }}
|
|
|
|
{{- if eq hugo.Environment "development" }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" />
|
|
|
|
{{- else }}
|
|
|
|
{{- with . | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- $theme := .Site.Params.theme }}
|
|
|
|
{{- if and $theme (ne $theme "default") }}
|
|
|
|
{{- with resources.Get (printf "css/%s.css" $theme) }}
|
|
|
|
{{- if eq hugo.Environment "development" }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" />
|
|
|
|
{{- else }}
|
|
|
|
{{- with . | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|