mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-12 04:24:13 +00:00
Compare commits
4 commits
3fa8bb8318
...
39a4a3cf67
Author | SHA1 | Date | |
---|---|---|---|
39a4a3cf67 | |||
52f339dada | |||
eef23a7f27 | |||
18cf75805c |
|
@ -18,6 +18,6 @@ package hugo
|
|||
var CurrentVersion = Version{
|
||||
Major: 0,
|
||||
Minor: 111,
|
||||
PatchLevel: 0,
|
||||
PatchLevel: 1,
|
||||
Suffix: "",
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
# Release env.
|
||||
# These will be replaced by script before release.
|
||||
HUGORELEASER_TAG=v0.110.0
|
||||
HUGORELEASER_COMMITISH=e32a493b7826d02763c3b79623952e625402b168
|
||||
HUGORELEASER_TAG=v0.111.0
|
||||
HUGORELEASER_COMMITISH=3fa8bb8318114cd69315eadd35bda169e6a8ca4b
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -83,3 +83,29 @@ post/doesnotexist.html: false
|
|||
|
||||
`)
|
||||
}
|
||||
|
||||
|
||||
// See #10774
|
||||
func TestPageFunctionExists(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
files := `
|
||||
-- config.toml --
|
||||
baseURL = 'http://example.com/'
|
||||
-- layouts/index.html --
|
||||
Home: {{ page.IsHome }}
|
||||
|
||||
`
|
||||
|
||||
b := hugolib.NewIntegrationTestBuilder(
|
||||
hugolib.IntegrationTestConfig{
|
||||
T: t,
|
||||
TxtarString: files,
|
||||
},
|
||||
).Build()
|
||||
|
||||
b.AssertFileContent("public/index.html", `
|
||||
Home: true
|
||||
|
||||
`)
|
||||
}
|
||||
|
|
|
@ -50,6 +50,7 @@ import (
|
|||
_ "github.com/gohugoio/hugo/tpl/math"
|
||||
_ "github.com/gohugoio/hugo/tpl/openapi/openapi3"
|
||||
_ "github.com/gohugoio/hugo/tpl/os"
|
||||
_ "github.com/gohugoio/hugo/tpl/page"
|
||||
_ "github.com/gohugoio/hugo/tpl/partials"
|
||||
_ "github.com/gohugoio/hugo/tpl/path"
|
||||
_ "github.com/gohugoio/hugo/tpl/reflect"
|
||||
|
|
Loading…
Reference in a new issue