Fix deprecation errors

This commit is contained in:
Bjørn Erik Pedersen
2024-08-05 19:14:07 +02:00
parent 2fcc53780f
commit 69455fa422
5 changed files with 4 additions and 39 deletions

View File

@@ -11,7 +11,7 @@ grep 'IsServer: false;IsProduction: true' public/index.html
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
Home|IsServer: {{ .Site.IsServer }};IsProduction: {{ hugo.IsProduction }}|
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
-- layouts/_default/single.html --
Title: {{ .Title }}
-- content/p1.md --

View File

@@ -25,7 +25,7 @@ myenv = "theproduction"
myenv = "thedevelopment"
-- layouts/index.html --
<body>
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ site.IsServer }}|
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ hugo.IsServer }}|
</body>
-- layouts/404.html --
custom 404