Merge pull request #27 from ffreeez/patch-1

Fix Hugo WARN deprecated
This commit is contained in:
Hanwen Guo 2024-10-04 12:34:23 -06:00 committed by GitHub
commit c674e59fca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@
<link rel="shortcut icon" type="image/x-icon" href="{{ $.Site.Params.favicon | relURL }}" /> <link rel="shortcut icon" type="image/x-icon" href="{{ $.Site.Params.favicon | relURL }}" />
{{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }} {{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
{{ $sass := resources.Get "css/main.scss" }} {{ $sass := resources.Get "css/main.scss" }}
{{ $style := $sass | resources.ToCSS $options | resources.Fingerprint "sha512" }} {{ $style := $sass | css.Sass $options | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $style.Permalink | relURL }}" integrity="{{ $style.Data.Integrity }}" /> <link rel="stylesheet" href="{{ $style.Permalink | relURL }}" integrity="{{ $style.Data.Integrity }}" />
{{ if .Params.mathjax }} {{ partial "mathjax.html" . }} {{ end }} {{ if .Params.mathjax }} {{ partial "mathjax.html" . }} {{ end }}
</head> </head>