From ad2f50e3d69812e20b4620077a0968628925f4d8 Mon Sep 17 00:00:00 2001 From: acanalis Date: Mon, 4 Jan 2021 12:26:49 -0300 Subject: [PATCH] Update plainwords description (#1296) * Update .PlainWords description * Add Go reference --- 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 a98edde54..8bad66d4f 100644 --- a/content/en/variables/page.md +++ b/content/en/variables/page.md @@ -118,7 +118,7 @@ See also `.ExpiryDate`, `.Date`, `.PublishDate`, and [`.GitInfo`][gitinfo]. : the Page content stripped of HTML tags and presented as a string. .PlainWords -: 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. +: the slice of strings that results from splitting .Plain into words, as defined in Go's [strings.Fields](https://golang.org/pkg/strings/#Fields). .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 .Prev}}{{.Prev.Permalink}}{{end}}`. Calling `.Prev` from the last page returns `nil`.