Skip to content

Commit

Permalink
Fix .site.IsServer deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Samq64 committed Aug 21, 2024
1 parent 4516760 commit 9b6e0f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/docs/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<hr />

<p class="text-muted">
{{ if ( and (eq .Language.Lang "en") ( not .Site.IsServer ) ) }}
{{ if ( and (eq .Language.Lang "en") ( not hugo.IsServer ) ) }}
{{- .Scratch.Add "commit_text" "<a href='https://github.com/ScratchAddons/website-v2/commit/"}}
{{- .Scratch.Add "commit_text" .GitInfo.Hash}}
{{- .Scratch.Add "commit_text" "'><code>"}}
Expand All @@ -10,4 +10,4 @@
{{- T "Docs.LastUpdated" (dict "Date" ( .Lastmod.Format "02 January 2006" ) "Name" .GitInfo.AuthorName "Commit" ( .Scratch.Get "commit_text" ) ) | safeHTML }}
{{ end }}
<a href="https://github.com/ScratchAddons/website-v2/edit/master/content/{{ .File.Path }}">{{ T "Docs.Improve" }}</a>
</p>
</p>

0 comments on commit 9b6e0f7

Please sign in to comment.