Skip to content

Commit

Permalink
Keep scss separate (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Feb 14, 2024
1 parent cc9f9bc commit af7c276
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions assets/theme-css/scientific-python-hugo-theme.scss

This file was deleted.

1 change: 1 addition & 0 deletions assets/theme-css/spht/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "./code";
6 changes: 5 additions & 1 deletion layouts/partials/css.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2">
<!-- Process and include Sass files. -->
{{- $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 . }} <!-- Skips nil elements from appending empty resources.Match slices. -->
Expand Down

0 comments on commit af7c276

Please sign in to comment.