Skip to content

Commit

Permalink
Migrate resources.ToCSS to toCSS alias
Browse files Browse the repository at this point in the history
This is needed for deprecation and pending removal of resources.ToCSS.
Also switching other resources.* functions to their aliases when
available for code style consistency.
  • Loading branch information
Leo3418 committed Dec 28, 2024
1 parent 4393093 commit 17d33e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions layouts/partials/asciinema-player.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/asciinema-player@3.6.3/dist/bundle/asciinema-player.css" integrity="sha256-GMIhu5Hnb2yvE2Ap29EPBTncrR45rZV4dFJ67VY37oY=" crossorigin="anonymous">

{{- $style := resources.Get "sass/asciinema-player-custom.scss"
| resources.ToCSS | resources.Minify | resources.Fingerprint
}}
| toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
4 changes: 1 addition & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
{{- define "partials/head-cacheable.html" }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">

{{- $style := resources.Get "sass/main.scss"
| resources.ToCSS | resources.Minify | resources.Fingerprint
}}
{{- $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"
integrity="{{ $style.Data.Integrity }}">
{{- partial "LoadCSSIfPresent.html" "static/css/syntax.css" }}
Expand Down

0 comments on commit 17d33e4

Please sign in to comment.