summaryrefslogtreecommitdiff
path: root/themes/robson/layouts/_partials/head/css.html
diff options
context:
space:
mode:
authorRoberto Esteves <contact@robertoesteves.dev>2025-12-31 14:19:13 +0000
committerRoberto Esteves <contact@robertoesteves.dev>2025-12-31 14:19:13 +0000
commit78070157c5ecee8ef52fe25f74e28fe188cfa95c (patch)
treebca4c635dd86d017e053f64ac75938858eeb7111 /themes/robson/layouts/_partials/head/css.html
init: basic websiteHEADmaster
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 }}