aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/format.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix: handle getStaticPaths fallbackArmand Philippot2022-02-021-0/+12
| | | | | | | | I had errors with next build because of fallback. I need to return early if the path does not exists, if not Next complains about undefined variables. I don't think it was related but I also fix the paths format in getStaticPaths, I forgot the params object in some dynamic routes.
* chore: wrap dates with time tagArmand Philippot2022-01-251-0/+16
|
* chore: add reading time in posts metaArmand Philippot2022-01-251-0/+8
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-26/+26
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: add structured data using schema.org and JSON-LDArmand Philippot2022-01-191-0/+2
| | | | I also added the featured image on single article.
* chore: add title and meta desc to subjects and thematicsArmand Philippot2022-01-111-2/+13
|
* chore(meta): display subjects instead of thematics on Thematic pagesArmand Philippot2022-01-111-0/+2
|
* refactor: avoid useless assignement before return statementArmand Philippot2022-01-041-6/+2
|
* chore: display subjects list under articlesArmand Philippot2022-01-031-1/+19
|
* chore: display comments as a treeArmand Philippot2021-12-271-1/+30
| | | | | | I was displaying comments without the parent/children link. Now, each child is displayed under its parent. I also remove the reply button for children to avoid too many child depth.
* chore: replace CV content with mdx contentArmand Philippot2021-12-241-23/+0
| | | | | Since I replace the other pages, there is no reason to fetch this page content through WP GraphQL.
* refactor: rewrite types and servicesArmand Philippot2021-12-201-0/+226
I was repeating myself a lot in services. So I rewrited the different functions to improve readability and I extracted some formatting functions to put them in utils. I also rewrited/reorganized some types to keep consistent names.