forked from scientific-python/scientific-python-hugo-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Allow sites to use local Sass files
This processes ".scss" files in the "assets/css" directory, allowing downstream sites to use Sass as well as plain CSS.
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
{{- $page := . -}} | ||
|
||
{{- $inServerMode := .Site.IsServer -}} | ||
{{- $sass := (slice "theme-css/fresh/core.scss") -}} | ||
{{- $sass := (slice "theme-css/fresh/core.scss") | append (resources.Match "css/*.scss") -}} | ||
{{- $cssOpts := cond ($inServerMode) (dict "enableSourceMap" true) (dict "outputStyle" "compressed") -}} | ||
|
||
<!-- Fonts --> | ||
|
@@ -15,7 +15,7 @@ | |
<link rel="stylesheet" href="{{ $fontUrl }}"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
|
||
<!-- SASS --- currently only for fresh --> | ||
<!-- SASS --> | ||
{{- range $sass -}} | ||
|
||
{{- if $inServerMode -}} | ||
|