From 4150d8ae86fa30184afe3aa149708d4fda085dbe Mon Sep 17 00:00:00 2001 From: Leo Kim Date: Mon, 12 Oct 2020 03:58:41 -0700 Subject: [PATCH] Fixed typo: update PrevPage to Prev --- content/en/variables/page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/variables/page.md b/content/en/variables/page.md index d108636d5..a98edde54 100644 --- a/content/en/variables/page.md +++ b/content/en/variables/page.md @@ -121,7 +121,7 @@ See also `.ExpiryDate`, `.Date`, `.PublishDate`, and [`.GitInfo`][gitinfo]. : the Page content stripped of HTML as a `[]string` using Go's [`strings.Fields`](https://golang.org/pkg/strings/#Fields) to split `.Plain` into a slice. .Prev -: Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight-date-linktitle-filepath)). Example: `{{if .PrevPage}}{{.PrevPage.Permalink}}{{end}}`. Calling `.Prev` from the last page returns `nil`. +: Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight-date-linktitle-filepath)). Example: `{{if .Prev}}{{.Prev.Permalink}}{{end}}`. Calling `.Prev` from the last page returns `nil`. .PrevInSection : Points down to the previous [regular page](/variables/site/#site-pages) below the same top level section (e.g. `/blog`). Pages are sorted by Hugo's [default sort](/templates/lists#default-weight-date-linktitle-filepath). Example: `{{if .PrevInSection}}{{.PrevInSection.Permalink}}{{end}}`. Calling `.PrevInSection` from the last page returns `nil`.