aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/pages.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Summary component with PostPreviewArmand Philippot2023-11-111-102/+0
| | | | | | | | | | | * rename component to PostPreview because Summary is an HTML element and it could lead to confusion * replace `title` and `titleLevel` with `heading` and `headingLvl` because `title` is a native attribute * rename `intro` prop to `excerpt` * extract `cover` from `meta` prop * rewrite meta type * extract meta logic into a new component
* refactor(routes): replace hardcoded routes with constantsArmand Philippot2023-10-241-19/+20
| | | | | | | | It makes it easier to change a route if needed and it avoid typo mistakes. I also refactored a bit the concerned files to be complient with the new ESlint config. However, I should rewrite the pages to reduce the number of statements.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-6/+6
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-6/+6
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* refactor(types): move and rename GraphQL typesArmand Philippot2022-08-201-1/+17
| | | | | | | The api file in services was not really readable. So I move the types and I also rewrite a little the fetch function. I also rename most of the type to avoid conflict with preexisting types (like Node) and to keep consistency.
* fix: ensure all topics/thematics have the base urlArmand Philippot2022-05-231-10/+6
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-17/+32
|
* chore: adjust and complete missing stylesArmand Philippot2022-05-161-1/+4
| | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements
* chore: add Thematic pageArmand Philippot2022-05-131-1/+46
|
* chore: fetch posts for rss feedArmand Philippot2022-05-021-0/+26