mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
Fix regression with site.IsServer when not running a server
Fixes #11006
This commit is contained in:
parent
99407c39ba
commit
9a235d0afc
10 changed files with 13 additions and 10 deletions
|
@ -5,12 +5,13 @@ stdout 'Pages.*|1'
|
|||
stdout 'Total in'
|
||||
checkfile public/index.html
|
||||
checkfile public/p1/index.html
|
||||
grep 'IsServer: false' public/index.html
|
||||
|
||||
-- hugo.toml --
|
||||
baseURL = "http://example.org/"
|
||||
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
|
||||
-- layouts/index.html --
|
||||
Home.
|
||||
Home|IsServer: {{ .Site.IsServer }}|
|
||||
-- layouts/_default/single.html --
|
||||
Title: {{ .Title }}
|
||||
-- content/p1.md --
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue