mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
@@ -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)
|
||||
|
Reference in New Issue
Block a user