Skip to content

Commit

Permalink
Merge pull request #485 from Samq64/fix-isserver
Browse files Browse the repository at this point in the history
Fix .site.IsServer deprecation error
  • Loading branch information
Hans5958 committed Aug 23, 2024
2 parents 4516760 + 97e5ddc commit 3f4f253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.119.0'
hugo-version: '0.133.0'
extended: true
- name: Build site
run: |
Expand Down
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 3f4f253

Please sign in to comment.