aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PostPreview
Commit message (Collapse)AuthorAgeFilesLines
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-292-225/+0
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* refactor: use formatjs swc pluginArmand Philippot2022-03-231-0/+1
| | | | | I'm not able to configure SWC plugins in Next.js so to make it works, all translation must have an id.
* refactor: replace script tags with next/script (#10)Armand Philippot2022-02-211-7/+6
| | | | | | | | * refactor: replace script tags with next/script Since next.js v12.1.0 some warnings was displayed because I was using some script tags. * build(deps): bump next-themes to v0.1.1
* fix: make schema.org markup valid (#4)Armand Philippot2022-02-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 49c1b3b1556a0eb91c429a961fedd2bded8ffd47 Author: Armand Philippot <git@armandphilippot.com> Date: Wed Feb 16 15:17:52 2022 +0100 chore: add headline field to blogPosting schema commit 42214c6f032cc899ec252a9387be35dcad738546 Author: Armand Philippot <git@armandphilippot.com> Date: Wed Feb 16 15:09:11 2022 +0100 chore: update the searchAction markup and add query-input Google was complaining about "query-input" which is not in Schema.org representation. So I added it. commit 5f29226d937cbdcd262df2793f1588435d850f02 Author: Armand Philippot <git@armandphilippot.com> Date: Wed Feb 16 14:32:14 2022 +0100 chore: remove breadcrumb from homepage The breadcrumb is not displayed on the homepage, so the breadcrumb field should not appear inside Schema markup.
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-7/+7
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-13/+18
|
* chore: add reading time in posts metaArmand Philippot2022-01-251-21/+34
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-1/+1
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-191-1/+1
| | | | | 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-34/+70
| | | | I also added the featured image on single article.
* refactor(styles): rename shadow and border variablesArmand Philippot2022-01-161-4/+4
|
* chore: update sidebar and widgets stylesArmand Philippot2022-01-152-3/+2
| | | | | | | | | 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: change posts list stylesArmand Philippot2022-01-141-9/+29
|
* chore(meta): display subjects instead of thematics on Thematic pagesArmand Philippot2022-01-111-0/+1
|
* refactor: improve button-like links stylesArmand Philippot2022-01-081-5/+1
| | | | | | | The goal was to replace the "read more articles about" links with button-like links to keep a certain consistence between buttons. The hasIcon variable was useless so I update some components and especially the back to top link.
* chore: adjust h2 stylesArmand Philippot2022-01-082-1/+6
|
* refactor: reuse PostMeta components on single articles/pagesArmand Philippot2022-01-061-7/+8
|
* chore: replace read more link with ButtonLink componentArmand Philippot2021-12-292-71/+28
| | | | | I also fix the load more button position since I removed the margin auto.
* refactor: rewrite types and servicesArmand Philippot2021-12-201-3/+3
| | | | | | | 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-2/+2
| | | | | | | 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.
* chore: display year between blog postsArmand Philippot2021-12-162-2/+7
|
* chore: display featuredImage and meta on posts listArmand Philippot2021-12-162-0/+186