Skip to content

Commit

Permalink
add new first and last to pagination page prop (#8751)
Browse files Browse the repository at this point in the history
Co-authored-by:  Matthew Phillips <[email protected]>
Co-authored-by: Luiz Ferraz <[email protected]>
Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
4 people authored Jul 14, 2024
1 parent 4d93c91 commit a1a1f2a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/content/docs/en/reference/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,22 @@ Get the URL of the previous page (will be `undefined` if on page 1). If a value

Get the URL of the next page (will be `undefined` if no more pages). If a value is set for [`base`](/en/reference/configuration-reference/#base), prepend the base path to the URL.

##### `page.url.first`

<p>
**Type:** `string | undefined`
</p>

Get the URL of the first page (will be `undefined` if on page 1). If a value is set for [`base`](/en/reference/configuration-reference/#base), prepend the base path to the URL.

##### `page.url.last`

<p>
**Type:** `string | undefined`
</p>

Get the URL of the last page (will be `undefined` if no more pages). If a value is set for [`base`](/en/reference/configuration-reference/#base), prepend the base path to the URL.

## `import.meta`

All ESM modules include a `import.meta` property. Astro adds `import.meta.env` through [Vite](https://vitejs.dev/guide/env-and-mode.html).
Expand Down

0 comments on commit a1a1f2a

Please sign in to comment.