Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Mar 13, 2024
1 parent 511dcd7 commit 4a1a7d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ block "meta_tags" . }}{{end}}
<link rel="icon" href="{{ "favicon.png" | absURL}}">

{{ 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 @@ -60,7 +60,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
2 changes: 1 addition & 1 deletion layouts/partials/google-analytics.html
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 4a1a7d7

Please sign in to comment.