aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/nav
Commit message (Collapse)AuthorAgeFilesLines
* fix(build): handle Next.js errors and warnings during buildArmand Philippot2023-12-161-2/+11
| | | | | | | | | | | | * extract Blog component from BlogPage (paginated) and extract Article component from ArticlePage to avoid `Cannot read properties` errors due to fallback route * fix sitemap build (cjs not supported) * fix eslint warnings (react/jsx-no-literals) * update `start` script since I'm using standalone output * update `postbuild` script since we need to copy public and static files to standalone directory (Next.js does not handle it itself because we should use a CDN...)
* refactor(stories): migrate stories to CSF3 formatArmand Philippot2023-12-155-267/+176
|
* refactor(hooks): rewrite useBreadcrumbs hookArmand Philippot2023-12-123-15/+15
| | | | | | | * use next/router to get the slug instead of using props * handle cases where the current page title is not provided * update JSON-LD schema to match the example in documentation * add tests
* refactor(components): rewrite PostsList componentArmand Philippot2023-11-132-1/+16
| | | | | | | | | | | | | | | * remove NoResults component and move logic to Search page * add a usePostsList hook * remove Pagination from PostsList (it is only used if javascript is disabled and not on every posts list) * replace `byYear` prop with `sortByYear` * replace `loadMore` prop with `onLoadMore` * remove `showLoadMoreBtn` (we can use `loadMore` prop instead to determine if we need to display the button) * replace `titleLevel` prop with `headingLvl` * add `firstNewResult` prop to handle focus on the new results when loading more article (we should not focus a useless span but the item directly)
* refactor(components): extract MainNav component from toolbarArmand Philippot2023-11-116-0/+178
|
* refactor(components): rewrite Breadcrumbs componentArmand Philippot2023-11-116-0/+152
|
* refactor(components): rewrite Pagination componentArmand Philippot2023-11-116-0/+526