From af7c27656d914decca6c1cff15ea118163e201be Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Wed, 14 Feb 2024 13:22:52 -0800 Subject: [PATCH] Keep scss separate (#478) --- assets/theme-css/scientific-python-hugo-theme.scss | 3 --- assets/theme-css/spht/index.scss | 1 + layouts/partials/css.html | 6 +++++- 3 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 assets/theme-css/scientific-python-hugo-theme.scss create mode 100644 assets/theme-css/spht/index.scss diff --git a/assets/theme-css/scientific-python-hugo-theme.scss b/assets/theme-css/scientific-python-hugo-theme.scss deleted file mode 100644 index e933ea13..00000000 --- a/assets/theme-css/scientific-python-hugo-theme.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import "./sphinx-design/index"; -@import "./pst/pydata-sphinx-theme"; -@import "./spht/code"; diff --git a/assets/theme-css/spht/index.scss b/assets/theme-css/spht/index.scss new file mode 100644 index 00000000..3863456e --- /dev/null +++ b/assets/theme-css/spht/index.scss @@ -0,0 +1 @@ +@import "./code"; diff --git a/layouts/partials/css.html b/layouts/partials/css.html index 0df6803c..d7d39ad1 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -22,7 +22,11 @@ -{{- $sass := (resources.Match "theme-css/*.scss") | append (resources.Match "css/*.scss") -}} +{{- $sass := append (resources.Get "theme-css/sphinx-design/index.scss") + (resources.Get "theme-css/pst/pydata-sphinx-theme.scss") + (resources.Get "theme-css/spht/index.scss") + (resources.Match "theme-css/*.scss") + | append (resources.Match "css/*.scss") -}} {{- range $sass -}} {{ with . }}