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 | e1e69437cfd016fe67096d80f2e010f17b6a4742 (patch) | |
| tree | acb4c7e292310351cb4363b0faf8fc3682c419e8 /layouts | |
| parent | e83c0ee56d396d7cb3ccbef19672350082626b40 (diff) | |
fix(theme): lift priority of custom theme css
Former-commit-id: 621eeb328dbf8b9b440039e536b97f83fb87b7ea
Diffstat (limited to 'layouts')
| -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 }} |
