diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-24 09:08:26 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-24 09:08:26 +0100 |
commit | a19563910eec5fed08f3b02563b9a7b38026183d (patch) | |
tree | abc2e0308560de6a3e8d1db091b9a2909ea45553 | |
parent | 0432c64dd22e4610302162678bb93661ba68d758 (diff) |
Add a GetPage to the site benchmarks
-rw-r--r-- | hugolib/site_benchmark_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site_benchmark_test.go b/hugolib/site_benchmark_test.go index 30720e7ed..dbe29a94a 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", `<p>MyShortcode</p>`) |