Skip to content

Commit

Permalink
Migrate resources.ToCSS to css.Sass
Browse files Browse the repository at this point in the history
  • Loading branch information
pmwmedia authored Jan 3, 2025
1 parent 05d83a1 commit 8283de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/head.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<link rel="icon" href="{{ `favicon.svg` | relURL }}" sizes="any" type="image/svg+xml">
<link rel="mask-icon" href="{{ `maskicon.svg` | relURL }}" type="image/svg+xml" color="#33ad00">
{{- $options := dict "includePaths" (slice "node_modules") "targetPath" "assets/style.css" "outputStyle" (cond hugo.IsProduction "compressed" nil) "enableSourceMap" (not hugo.IsProduction) }}
{{- $style := resources.Get "sass/index.scss" | resources.ToCSS $options | resources.ExecuteAsTemplate "assets/style.css" . | resources.Fingerprint }}
{{- $style := resources.Get "sass/index.scss" | toCSS $options | resources.ExecuteAsTemplate "assets/style.css" . | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{- $options := dict "targetPath" "assets/script.js" "target" "es2015" "minify" hugo.IsProduction "sourceMap" (cond hugo.IsProduction nil "inline") }}
{{- $script := resources.Get "typescript/index.ts" | js.Build $options | resources.Fingerprint }}
<script src="{{ $script.RelPermalink }}" defer></script>
<script src="https://buttons.github.io/buttons.js" defer></script>
</head>
</head>

0 comments on commit 8283de3

Please sign in to comment.