mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
1 file changed
+3
-1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user