mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
Fix deprecation errors
This commit is contained in:
@@ -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 --
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user