aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/partials/css-res.html
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-26 19:36:40 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-26 19:36:40 +0800
commit5078921f9309ee1d78d528aa683c8eb982c571e1 (patch)
tree996c21f5084e725bc765f87d2126528e0b499d39 /www/layouts/partials/css-res.html
parent0874dd5d5652f7d710d98329ba111fd69e7d8fce (diff)
downloadcrupest-5078921f9309ee1d78d528aa683c8eb982c571e1.tar.gz
crupest-5078921f9309ee1d78d528aa683c8eb982c571e1.tar.bz2
crupest-5078921f9309ee1d78d528aa683c8eb982c571e1.zip
fix(www): css load blink, code block bg, links.
Diffstat (limited to 'www/layouts/partials/css-res.html')
-rw-r--r--www/layouts/partials/css-res.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/layouts/partials/css-res.html b/www/layouts/partials/css-res.html
new file mode 100644
index 0000000..6fabf67
--- /dev/null
+++ b/www/layouts/partials/css-res.html
@@ -0,0 +1,9 @@
+{{ with . | minify }}
+ {{ if hugo.IsProduction }}
+ {{ with . | fingerprint }}
+ <link href="{{ .RelPermalink }}" rel="stylesheet" integrity="{{ .Data.Integrity }}">
+ {{ end }}
+ {{ else }}
+ <link href="{{ .RelPermalink }}" rel="stylesheet">
+ {{ end }}
+{{ end }}