Skip to content

Commit 6c74384

Browse files
chore: update deprecated helper functions (#77)
Calls to .Site.IsServer were preventing upgrading to a newer version of Hugo.
1 parent d8766b5 commit 6c74384

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

layouts/_default/baseof.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{ partial "head_custom.html" . }}
1919
{{ end }}
2020

21-
{{ if or ( not .Site.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
21+
{{ if or ( not hugo.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
2222

2323
{{ partial "trustarc.html" . }}
2424

@@ -37,7 +37,7 @@
3737
</head>
3838

3939
<body>
40-
{{ if or ( not .Site.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
40+
{{ if or ( not hugo.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
4141
{{ partial "universal-tag.html" . }}
4242
{{ end }}
4343

layouts/partials/meta.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<!-- build metadata -->
6060
<meta property="environment" type="{{ hugo.Environment }}" />
6161
<meta property="buildtype" type="{{ .Site.Params.buildtype }}" />
62-
<meta property="isServer" type="{{ .Site.IsServer }}" />
62+
<meta property="isServer" type="{{ hugo.IsServer }}" />
6363

6464
<!-- Coveo metadata-->
6565
<meta name="product" content="{{ .Site.Title }}">

theme.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ licenselink = "https://github.com/nginxinc/nginx-hugo-theme/blob/main/LICENSE"
77
description = "Hugo theme for F5 NGINX documentation"
88
homepage = "https://docs.nginx.com/"
99

10-
min_version = "0.74.3"
10+
min_version = "0.128.0"
1111

1212
[author]
1313
name = "F5, Inc."

0 commit comments

Comments
 (0)