Skip to content

Commit d4c943d

Browse files
authored
Merge pull request cobalt-org#93 from natjms/feat-next-prev
feat(variables): Add documentation for next and previous
2 parents 5d136cc + f4f1c49 commit d4c943d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/variables.md

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Variable | Format | Description
5858
`page.file.permalink` | String | Relative path to the source file.
5959
`page.collection` | String | The slug of the page's collection. `"posts"` for posts.
6060
`page.data` | Object | User-defined data, see [frontmatter](/docs/front).
61+
`page.next` | Object | Page variables of the next page in the collection. Only available in posts
62+
`page.previous` | Object | Page variables of the previous page in the collection. Only available in posts
6163

6264
Additionally, in the context of your [page layout](/docs/layouts):
6365

0 commit comments

Comments
 (0)