Skip to content

Commit

Permalink
fix error deprecated - from .Site.IsServer to hugo.IsServer
Browse files Browse the repository at this point in the history
  • Loading branch information
sryu authored and sryu committed Aug 26, 2024
1 parent 8fe0d6c commit a71279a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/themes/hugo-whisper-theme/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">

{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" true) }}
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
{{ else }}
Expand Down Expand Up @@ -67,7 +67,7 @@
{{ block "footer_js" . }}
{{ end }}

{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<script type="text/javascript" src="{{ $scripts.RelPermalink }}"></script>
{{ else }}
<script type="text/javascript" src="{{ ($scripts | minify | fingerprint).RelPermalink }}"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Site.IsServer -}}
{{- if hugo.IsServer -}}
<!-- Dont add Google analytics to localhost -->
{{ else }}
{{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }}
Expand Down

0 comments on commit a71279a

Please sign in to comment.