Skip to content

Commit

Permalink
Gets rid of deprecation warning .Site.IsServer
Browse files Browse the repository at this point in the history
INFO  deprecated: .Site.IsServer was deprecated in Hugo v0.120.0
  • Loading branch information
robhenley committed Feb 23, 2024
1 parent 34414f9 commit 6727a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ hugo.Generator }}

{{- $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./assets/css/") -}}
{{- if .Site.IsServer }}
{{- if hugo.IsServer }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" />
{{ else }}
{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}}
Expand Down

0 comments on commit 6727a56

Please sign in to comment.