summaryrefslogtreecommitdiff
path: root/layouts/partials/head/css.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2024-12-19 14:41:26 +0800
committerEltrac <hi@guhub.cn>2024-12-19 14:41:26 +0800
commit103be55e7daec04b8da85ee175a9ec2317a167b0 (patch)
tree99af7983332c60d0f276416a34d936a5581fede8 /layouts/partials/head/css.html
parentc695b9511ba695bc57144b8c3f72e08625cce29a (diff)
refactor: disable theme and move layout files to root
Diffstat (limited to 'layouts/partials/head/css.html')
-rw-r--r--layouts/partials/head/css.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html
new file mode 100644
index 00000000..b2193666
--- /dev/null
+++ b/layouts/partials/head/css.html
@@ -0,0 +1,17 @@
+<!-- theme css -->
+{{ with resources.Get "css/index.css" | minify }}
+<style>{{ .Content | safeCSS }}</style>
+{{ end }}
+{{ with resources.Get "css/flexboxgrid-6.3.1.min.css" | minify }}
+<style>{{ .Content | safeCSS }}</style>
+{{ end }}
+
+<!-- Google Fonts -->
+<link rel="preconnect" href="https://fonts.googleapis.com">
+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200..900&display=swap" rel="stylesheet">
+
+<!-- Extra -->
+{{ range .Site.Params.extraCSSFiles -}}
+<link rel="stylesheet" href="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}">
+{{- end }}