summaryrefslogtreecommitdiff
path: root/themes/robson/layouts/_partials/head/css.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/robson/layouts/_partials/head/css.html')
-rw-r--r--themes/robson/layouts/_partials/head/css.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/robson/layouts/_partials/head/css.html b/themes/robson/layouts/_partials/head/css.html
new file mode 100644
index 0000000..add502d
--- /dev/null
+++ b/themes/robson/layouts/_partials/head/css.html
@@ -0,0 +1,12 @@
+{{ $cssFiles := slice "css/main.css" "css/colorscheme.css" }}
+{{ range $cssFiles }}
+ {{- 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 }}