diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 755b6ea..23977e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/layouts/partials/site/styles.html b/layouts/partials/site/styles.html index b22e02b..e18aed2 100644 --- a/layouts/partials/site/styles.html +++ b/layouts/partials/site/styles.html @@ -1,7 +1,6 @@ -{{- $options := dict "transpiler" "dartsass" "outputStyle" "compressed" -}} -{{- with resources.Get "/css/main.scss" | resources.ToCSS $options -}} - -{{- end -}} +{{ $options := dict "transpiler" "dartsass" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) }} +{{ $style := resources.Get "/css/main.scss" | resources.ToCSS $options | resources.Fingerprint }} + {{/* Publish fonts. */}} {{- range $fontsPathPrefix := slice "/node_modules/@fortawesome/fontawesome-free/webfonts/" "/node_modules/academicons/fonts/" -}}