diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-10-21 10:49:16 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-10-21 10:49:16 +0200 |
commit | ec5962278f394654fd17df35bbfceb19702553dd (patch) | |
tree | 3d4ee3c26da28406fbdf52d30587cb7ae9db423b | |
parent | 27aef3f1fbf657137e825f30bb50dda393618a6f (diff) | |
parent | 5070ba6c9e6c492deade3c30cfe769b9dbf7151d (diff) |
Merge commit '5070ba6c9e6c492deade3c30cfe769b9dbf7151d'
-rw-r--r-- | docs/content/en/content-management/image-processing/index.md | 2 | ||||
-rw-r--r-- | docs/content/en/variables/pages.md | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/docs/content/en/content-management/image-processing/index.md b/docs/content/en/content-management/image-processing/index.md index 63911b159..9ec0734cc 100644 --- a/docs/content/en/content-management/image-processing/index.md +++ b/docs/content/en/content-management/image-processing/index.md @@ -133,6 +133,8 @@ You can set the background color to use with a 3 or 6 digit hex code starting wi For color codes, see https://www.google.com/search?q=color+picker +**Note** that you also set a default background color to use, see [Image Processing Config](#image-processing-config). + ### JPEG Quality Only relevant for JPEG images, values 1 to 100 inclusive, higher is better. Default is 75. diff --git a/docs/content/en/variables/pages.md b/docs/content/en/variables/pages.md new file mode 100644 index 000000000..79d39a158 --- /dev/null +++ b/docs/content/en/variables/pages.md @@ -0,0 +1,30 @@ +--- +title: Pages Methods +linktitle: +description: Pages is the core page collection in Hugo and has many useful methods. +date: 2019-10-20 +categories: [variables and params] +keywords: [pages] +draft: false +menu: + docs: + title: "methods defined on a page collection" + parent: "variables" + weight: 21 +weight: 21 +sections_weight: 20 +aliases: [/pages] +toc: true +--- + +Also see [List templates](/templates/lists) for an overview of sort methods. + +## .Next PAGE + +`.Next` and `.Prev` on `Pages` work similar to the methods with the same names on `.Page`, but are more flexible (and slightly slower) as they can be used on any page collection. + +`.Next` points **up** to the next page relative to the page sent in as the argument. Example: `{{with .Site.RegularPages.Next . }}{{.RelPermalink}}{{end}}`. Calling `.Next` with the first page in the collection returns `nil`. + +## .Prev PAGE + +`.Prev` points **down** to the previous page relative to the page sent in as the argument. Example: `{{with .Site.RegularPages.Prev . }}{{.RelPermalink}}{{end}}`. Calling `.Prev` with the last page in the collection returns `nil`.
\ No newline at end of file |