mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 22:01:14 +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) {
|
||||
t.Parallel()
|
||||
|
||||
templ := `{{ index .Site.RegularPages 0 | jsonify }}`
|
||||
templ := `Page: |{{ index .Site.RegularPages 0 | jsonify }}|
|
||||
Site: {{ site | jsonify }}
|
||||
`
|
||||
|
||||
b := newTestSitesBuilder(t)
|
||||
b.WithSimpleConfigFile().WithTemplatesAdded("index.html", templ)
|
||||
|
|
Loading…
Reference in a new issue