mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 13:30:49 +00:00
parent
bb533ca5e1
commit
8bfd3a54a4
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ import (
|
||||||
func TestEncodePage(t *testing.T) {
|
func TestEncodePage(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
templ := `{{ index .Site.RegularPages 0 | jsonify }}`
|
templ := `Page: |{{ index .Site.RegularPages 0 | jsonify }}|
|
||||||
|
Site: {{ site | jsonify }}
|
||||||
|
`
|
||||||
|
|
||||||
b := newTestSitesBuilder(t)
|
b := newTestSitesBuilder(t)
|
||||||
b.WithSimpleConfigFile().WithTemplatesAdded("index.html", templ)
|
b.WithSimpleConfigFile().WithTemplatesAdded("index.html", templ)
|
||||||
|
|
Loading…
Reference in a new issue