Создана страница - Документы
This commit is contained in:
parent
b252ae3430
commit
ed01ec28ed
9 changed files with 1839 additions and 16 deletions
|
|
@ -14,7 +14,10 @@ const {
|
|||
} = Astro.props as PaginationProps;
|
||||
|
||||
const getPageUrl = (page: number) => {
|
||||
if (page === 1) return baseUrl;
|
||||
if (baseUrl === '/documents' || baseUrl === '/faq') {
|
||||
if (page === 1) return baseUrl;
|
||||
return `${baseUrl}?page=${page}`;
|
||||
}
|
||||
return `${baseUrl}/page/${page}`;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue