diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-08 14:00:34 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-08 14:00:34 +0800 |
| commit | c66c868fea27eda8d55dd2d276913ac3ecfbdc58 (patch) | |
| tree | cd3b398e541c1830cde8edc0804eaa9ef3014fcd /layouts/partials/head/css.html | |
| parent | 72ba214d703e160ea5ccc09702415ddda6d0b2e0 (diff) | |
refactor: include only necessary styles and remove unused like-button assets
Diffstat (limited to 'layouts/partials/head/css.html')
| -rw-r--r-- | layouts/partials/head/css.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html index bf041938..ca636713 100644 --- a/layouts/partials/head/css.html +++ b/layouts/partials/head/css.html @@ -23,6 +23,12 @@ {{- end }} <!-- theme css --> -{{ with resources.Get "css/index.scss" | css.Sass | minify }} +{{ with resources.Get "css/global.scss" | css.Sass | minify }} <style>{{ .Content | safeCSS }}</style> {{ end }} + +{{- if or (in .Section "posts") (in .Section "cards") (in .Section "library") (eq .Type "single") }} +{{ with resources.Get "css/content.scss" | css.Sass | minify }} +<style>{{ .Content | safeCSS }}</style> +{{ end }} +{{- end }} |
