Skip to content

Commit 0a0eec3

Browse files
committed
Use css.Sass as resources.ToCSS is deprecated
1 parent 62a8a5e commit 0a0eec3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

layouts/_default/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ define "main" }}
22

3-
{{ $style := resources.Get "assets/css/landing.scss" | resources.ToCSS -}}
3+
{{ $style := resources.Get "assets/css/landing.scss" | css.Sass -}}
44
<link rel="stylesheet" href="{{ $style.Permalink }}" />
55
<script>
66
window.i18nStrings = {

layouts/_default/markdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ define "head-extra" -}}
22

3-
{{ $style := resources.Get "assets/css/markdown.scss" | resources.ToCSS -}}
3+
{{ $style := resources.Get "assets/css/markdown.scss" | css.Sass -}}
44
<link rel="stylesheet" href="{{ $style.Permalink }}" />
55

66
{{- end }}

layouts/blog/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
{{- partial "nav" . -}}
1414

15-
{{ $style := resources.Get "assets/css/markdown.scss" | resources.ToCSS }}
15+
{{ $style := resources.Get "assets/css/markdown.scss" | css.Sass }}
1616
<link rel="stylesheet" href="{{ $style.Permalink }}" />
1717

1818
<main>

layouts/partials/scss.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{{- $style := resources.Get . | resources.ToCSS -}}
1+
{{- $style := resources.Get . | css.Sass -}}
22
<link rel="stylesheet" href="{{ $style.Permalink }}" />

0 commit comments

Comments
 (0)