Skip to content

Commit

Permalink
Use dartsass
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcenteno committed Sep 18, 2024
1 parent 160edb7 commit fc31a4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ jobs:
hugo-version: 'latest'
extended: true

- name: Install Dart Sass
run: sudo snap install dart-sass

- name: Build site
run: hugo
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>{{ .Title }}</title>

{{ $style := resources.Get "scss/index.scss" }} {{ $options := dict
"transpiler" "dartsass" }} {{ $style := $style | resources.ToCSS $options}}
"transpiler" "dartsass" }} {{ $style := $style | toCSS $options}}

<link rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}" />

Expand Down

0 comments on commit fc31a4f

Please sign in to comment.