Skip to content

Commit

Permalink
refactor: use hugo.IsServer
Browse files Browse the repository at this point in the history
  • Loading branch information
linkvt committed Sep 1, 2024
1 parent ac24c2a commit 189fbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ partial "meta" . }}

{{ $styles := resources.Get "css/style.css" | postCSS }}
{{ 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 189fbf4

Please sign in to comment.