mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
1 file changed
+3
-1
@@ -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