diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-03 19:57:05 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-03 19:57:05 +0800 |
| commit | 621eeb328dbf8b9b440039e536b97f83fb87b7ea (patch) | |
| tree | 61011a07fd2f0908d45d9876f16c6ed86b69cb7e | |
| parent | 6267dd43a2910c8ae7257baaba5eacbf569518ab (diff) | |
fix(theme): lift priority of custom theme css
| -rw-r--r-- | layouts/partials/head/css.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index 9061dde0..bdb2c351 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -1,11 +1,3 @@ -<!-- theme css --> -{{ with resources.Get "css/flexbox.css" | minify }} -<style>{{ .Content | safeCSS }}</style> -{{ end }} -{{ with resources.Get "css/index.scss" | css.Sass | 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> @@ -16,3 +8,11 @@ {{ range .Site.Params.extraCSSFiles -}} <link rel="stylesheet" href="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}"> {{- end }} + +<!-- theme css --> +{{ with resources.Get "css/flexbox.css" | minify }} +<style>{{ .Content | safeCSS }}</style> +{{ end }} +{{ with resources.Get "css/index.scss" | css.Sass | minify }} +<style>{{ .Content | safeCSS }}</style> +{{ end }} |
