From: Bjørn Erik Pedersen Date: Wed, 24 Jan 2018 08:08:26 +0000 (+0100) Subject: Add a GetPage to the site benchmarks X-Git-Tag: v0.35~41 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a19563910eec5fed08f3b02563b9a7b38026183d;p=brevno-suite%2Fhugo Add a GetPage to the site benchmarks --- diff --git a/hugolib/site_benchmark_test.go b/hugolib/site_benchmark_test.go index 30720e7e..dbe29a94 100644 --- a/hugolib/site_benchmark_test.go +++ b/hugolib/site_benchmark_test.go @@ -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", `

MyShortcode

`)