Skip to content

Commit c716cf6

Browse files
committed
fix: Hugo deprecated errors & warnings
1 parent 5e00199 commit c716cf6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

exampleSite/config/_default/config.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
title = "Hugo Xterm"
22
languageCode = "en-us"
33
baseurl = "https://manid2.github.io/hugo-xterm/"
4-
paginate = 20
4+
5+
[pagination]
6+
pagerSize = 20
57

68
[module]
79
[[module.imports]]

exampleSite/content/posts/markdown-syntax.md

-4
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ Code Blocks
154154

155155
<!-- markdownlint-enable -->
156156

157-
### Gist
158-
159-
{{< gist spf13 7896402 >}}
160-
161157
List Types
162158
----------
163159

layouts/partials/head/style.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
{{- /* styles */}}
66
{{- if hugo.IsProduction -}}
77
{{- $options := (dict "targetPath" "styles.css" "outputStyle" "compressed") -}}
8-
{{- $styles := resources.Get "styles/app.scss" | resources.ToCSS $options | resources.Fingerprint -}}
8+
{{- $styles := resources.Get "styles/app.scss" | toCSS $options | resources.Fingerprint -}}
99
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" />
1010
{{- else -}}
1111
{{- $options := (dict "targetPath" "styles.css" "outputStyle" "compressed" "enableSourceMap" true) -}}
12-
{{- $styles := resources.Get "styles/app.scss" | resources.ToCSS $options -}}
12+
{{- $styles := resources.Get "styles/app.scss" | toCSS $options -}}
1313
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
1414
{{- end -}}
1515

0 commit comments

Comments
 (0)