Skip to content

Commit

Permalink
Improve build
Browse files Browse the repository at this point in the history
  • Loading branch information
heinrichreimer committed Mar 6, 2024
1 parent 950d105 commit 5e1f0e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.123.4'
extended: true
- name: 🧰 Install dart-sass-embedded
run: sudo snap install dart-sass
- name: 🧰 Install Node
Expand Down
7 changes: 3 additions & 4 deletions layouts/partials/site/styles.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{- $options := dict "transpiler" "dartsass" "outputStyle" "compressed" -}}
{{- with resources.Get "/css/main.scss" | resources.ToCSS $options -}}
<link rel="stylesheet" href="{{ .Permalink }}">
{{- end -}}
{{ $options := dict "transpiler" "dartsass" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) }}
{{ $style := resources.Get "/css/main.scss" | resources.ToCSS $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">

{{/* Publish fonts. */}}
{{- range $fontsPathPrefix := slice "/node_modules/@fortawesome/fontawesome-free/webfonts/" "/node_modules/academicons/fonts/" -}}
Expand Down

0 comments on commit 5e1f0e2

Please sign in to comment.