Skip to content

Commit

Permalink
Add a GetPage to the site benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jan 24, 2018
1 parent 0432c64 commit a195639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hugolib/site_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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>`)

Expand Down

0 comments on commit a195639

Please sign in to comment.