summaryrefslogtreecommitdiffstats
path: root/src/pages/thematique
Commit message (Collapse)AuthorAgeFilesLines
* chore: display initial posts, thematics & topicsArmand Philippot2022-02-141-1/+8
| | | | | By fetching the data in getStaticProps, I can display the data even for users with Javascript disabled.
* chore: improve accessibilityArmand Philippot2022-02-111-2/+14
|
* fix: handle getStaticPaths fallbackArmand Philippot2022-02-021-1/+6
| | | | | | | | 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.
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-13/+13
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-3/+17
|
* chore(i18n): replace i18n provider and helpersArmand Philippot2022-01-291-13/+13
|
* fix: handle translation with linguiArmand Philippot2022-01-281-5/+4
| | | | | | | | The previous method was not working so I tried a different approach. Translation is loaded but I'm still getting warnings: * Plurals for locale undefined aren't loaded * Text content did not match I can't figure how to fix them...
* chore: display total found posts in page metaArmand Philippot2022-01-251-0/+1
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-11/+11
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: add opengraph and twitter metaArmand Philippot2022-01-191-2/+7
|
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-191-2/+2
| | | | | I will need the country code, so I think it makes more sense to gather them inside the same property.
* chore: add structured data using schema.org and JSON-LDArmand Philippot2022-01-191-0/+47
| | | | I also added the featured image on single article.
* chore: update sidebar and widgets stylesArmand Philippot2022-01-151-6/+6
| | | | | | | | | I'm now using a widget that can be expanded/collapsed. It also allows me to handle more effectively widgets overflow and to avoid styles repetitions. However, with stylelint rule "no-descending-specificity", I'm not sure if the stylesheets are really logical... Maybe I should deactivate this rule.
* chore: add title and meta desc to subjects and thematicsArmand Philippot2022-01-111-19/+28
|
* chore: add meta, toc and widgets on thematic pagesArmand Philippot2022-01-111-9/+41
|
* chore: adjust css grid on listing pages without sidebarArmand Philippot2022-01-071-10/+9
|
* chore: move Main grid to its childrenArmand Philippot2022-01-061-5/+8
| | | | This way I can use full width background for some blocks.
* refactor: reuse PostMeta components on single articles/pagesArmand Philippot2022-01-061-4/+2
|
* refactor: avoid mutated array with reverse methodArmand Philippot2022-01-041-1/+1
|
* chore: add a breadcrumb componentArmand Philippot2021-12-211-5/+4
|
* refactor: rewrite types and servicesArmand Philippot2021-12-201-5/+5
| | | | | | | 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.
* chore: create thematic page viewArmand Philippot2021-12-161-0/+77
For now I have to repeat some markup/styles, I cannot reuse PostsList component. WP GraphQL does not offer edges for ACF Post2Post or filters to get thematic posts with another way. I should create custom fields in backend to improve the posts fetching.