Skip to content

Commit

Permalink
Merge pull request #93 from natjms/feat-next-prev
Browse files Browse the repository at this point in the history
feat(variables): Add documentation for next and previous
  • Loading branch information
epage authored Jul 5, 2024
2 parents 5d136cc + f4f1c49 commit d4c943d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Variable | Format | Description
`page.file.permalink` | String | Relative path to the source file.
`page.collection` | String | The slug of the page's collection. `"posts"` for posts.
`page.data` | Object | User-defined data, see [frontmatter](/docs/front).
`page.next` | Object | Page variables of the next page in the collection. Only available in posts
`page.previous` | Object | Page variables of the previous page in the collection. Only available in posts

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

Expand Down

0 comments on commit d4c943d

Please sign in to comment.