diff --git a/src/components/atoms/Pagination.astro b/src/components/atoms/Pagination.astro index d5828fc..90bc7b3 100644 --- a/src/components/atoms/Pagination.astro +++ b/src/components/atoms/Pagination.astro @@ -1,32 +1,35 @@ --- import { Icon } from 'astro-icon/components'; import { getRelativeLink } from '~/utils/permalinks'; -const { prevUrl, nextUrl, prevText = 'Newer posts', nextText = 'Older posts' } = Astro.props; + +export interface Props { + prevUrl?: string; + nextUrl?: string; + prevText?: string; + nextText?: string; +} + +const { prevUrl, nextUrl, prevText = '较新文章', nextText = '较旧文章' } = Astro.props; --- { (prevUrl || nextUrl) && (