mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 21:21:14 +00:00
Add a GetPage to the site benchmarks
This commit is contained in:
parent
0432c64dd2
commit
a19563910e
1 changed files with 2 additions and 2 deletions
|
@ -275,8 +275,8 @@ weight = %d
|
|||
// Maybe consider reusing the Source fs
|
||||
mf := afero.NewMemMapFs()
|
||||
th, h := newTestSitesFromConfig(b, mf, siteConfig,
|
||||
"layouts/_default/single.html", `Single HTML|{{ .Title }}|{{ .Content }}|{{ partial "myPartial" . }} `,
|
||||
"layouts/_default/list.html", `List HTML|{{ .Title }}|{{ .Content }}`,
|
||||
"layouts/_default/single.html", `Single HTML|{{ .Title }}|{{ .Content }}|{{ partial "myPartial" . }}`,
|
||||
"layouts/_default/list.html", `List HTML|{{ .Title }}|{{ .Content }}|GetPage: {{ with .Site.GetPage "page" "sect3/page3.md" }}{{ .Title }}{{ end }}`,
|
||||
"layouts/partials/myPartial.html", `Partial: {{ "Hello **world**!" | markdownify }}`,
|
||||
"layouts/shortcodes/myShortcode.html", `<p>MyShortcode</p>`)
|
||||
|
||||
|
|
Loading…
Reference in a new issue