Skip to content

Commit

Permalink
Update deprecated .Site.IsServer to hugo.IsServer (#396)
Browse files Browse the repository at this point in the history
* Update deprecated .Site.IsServer to huge.IsServer
* PR Feedback: Update Hugo versions

---------

Co-authored-by: VioletHynes <violet@damsel-of-distress>
  • Loading branch information
VioletHynes and VioletHynes authored Sep 19, 2024
1 parent 28ef722 commit 8a11bff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.119.0'
hugo-version: '0.134.2'
extended: true

- name: Setup node
Expand Down
2 changes: 1 addition & 1 deletion layouts/editor/baseof.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $scratch := newScratch }}
{{ $scratch.Set "style" (resources.Get "css/main.css" | postCSS) }}
{{ $scratch.Set "config" (default "config.yml" (index .Params "config")) }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{/* development */}}
{{ $scratch.Set "config" (default "dev.yml" (index .Params "dev_config")) }}
{{ else }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
rel="stylesheet"
/>
{{ $styles := resources.Get "css/main.css" | postCSS }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" />
{{ else }}
{{ $styles := $styles | minify | fingerprint | resources.PostProcess }}
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "A theme for The Balance"
homepage = "https://github.com/The-Balance-FFXIV/glam/"
tags = []
features = []
min_version = "0.119.0"
min_version = "0.120.0"

[author]
name = ""
Expand Down

0 comments on commit 8a11bff

Please sign in to comment.