| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | refactor: update graphql queries (#14) | Armand Philippot | 2022-03-09 | 3 | -16/+10 |
| | | | | | | | | | | | | | | | | | | | * refactor: replace postBy query postBy is now deprecated in WPGraphQL v1.7 * refactor: update post comments query PostBy is deprecated and it is now possible to use the post ID to query comments. * refactor: update get topic by slug query topicBy is deprecated * refactor: update get thematic by slug query thematicBy is deprecated | ||||
| * | feat: provide pagination for users with js disabled (#13) | Armand Philippot | 2022-03-09 | 2 | -2/+17 |
| | | | | | | | | | | * chore: add a Pagination component * chore: add blog pages * chore: fallback to page number based navigation if JS disabled * chore: update translation | ||||
| * | refactor: split posts meta into smaller components | Armand Philippot | 2022-03-01 | 1 | -0/+2 |
| | | |||||
| * | chore(homepage): use next/image for images and specify width/height | Armand Philippot | 2022-02-22 | 1 | -0/+6 |
| | | |||||
| * | refactor: remove unused graphql fields | Armand Philippot | 2022-02-14 | 1 | -15/+0 |
| | | |||||
| * | chore: display initial posts, thematics & topics | Armand Philippot | 2022-02-14 | 2 | -1/+7 |
| | | | | | | By fetching the data in getStaticProps, I can display the data even for users with Javascript disabled. | ||||
| * | chore: improve comment form user experience | Armand Philippot | 2022-02-14 | 1 | -0/+2 |
| | | |||||
| * | fix: update comments list when a new comment is send | Armand Philippot | 2022-02-14 | 3 | -3/+13 |
| | | | | | | The comments list was static before. If an user posted a comment, even after it was approved, the comments list was keeping the old state. | ||||
| * | chore: improve RSS feed generation time | Armand Philippot | 2022-02-13 | 2 | -4/+13 |
| | | |||||
| * | fix: handle getStaticPaths fallback | Armand Philippot | 2022-02-02 | 1 | -0/+4 |
| | | | | | | | | | 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. | ||||
| * | fix(project): make sure the project cover is displayed | Armand Philippot | 2022-01-27 | 1 | -10/+11 |
| | | | | | | | | | Next.js does not support the dynamic import of images. Sometimes the images was displayed and other times the loading did not finish. So even if I would like to keep the content in a same place, I choose to put the projects covers inside the public directory. Then I use a hasCover boolean to determine if the project cover need to be printed. | ||||
| * | chore: add reading time in posts meta | Armand Philippot | 2022-01-25 | 3 | -6/+26 |
| | | |||||
| * | chore: display total found posts in page meta | Armand Philippot | 2022-01-25 | 2 | -0/+2 |
| | | |||||
| * | refactor(project): replace repo api call method with hook and swr | Armand Philippot | 2022-01-24 | 1 | -0/+2 |
| | | | | | | | | | | | Instead of using post slug and an environment variable to fetch repo data, I use the given repo in each project MDX file. It allows me to fetch data from another user/organization if needed. To make it work, I no longer provide the full URL in MDX file. The new format is: "User/repo-slug". I also replaced the fetch method with SWR to improve caching and to avoid React complaining about cleanup useEffect. | ||||
| * | refactor: rename all subject occurrences into topic | Armand Philippot | 2022-01-23 | 3 | -34/+30 |
| | | | | | | I change the name in graphql endpoint, so I decided to repercute this change here. | ||||
| * | chore: add a project summary component | Armand Philippot | 2022-01-20 | 1 | -0/+5 |
| | | |||||
| * | chore: add single project view | Armand Philippot | 2022-01-20 | 1 | -2/+11 |
| | | |||||
| * | chore: add a page for projects | Armand Philippot | 2022-01-20 | 1 | -0/+17 |
| | | |||||
| * | chore: add structured data using schema.org and JSON-LD | Armand Philippot | 2022-01-19 | 1 | -0/+2 |
| | | | | | I also added the featured image on single article. | ||||
| * | chore: update sidebar and widgets styles | Armand Philippot | 2022-01-15 | 1 | -0/+4 |
| | | | | | | | | | | 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 thematics | Armand Philippot | 2022-01-11 | 1 | -1/+3 |
| | | |||||
| * | chore(meta): display subjects instead of thematics on Thematic pages | Armand Philippot | 2022-01-11 | 1 | -2/+3 |
| | | |||||
| * | chore: add a widget to list all blog topics | Armand Philippot | 2022-01-07 | 2 | -4/+12 |
| | | |||||
| * | chore: add a widget to list all blog thematics | Armand Philippot | 2022-01-07 | 2 | -0/+8 |
| | | |||||
| * | refactor: reuse PostMeta components on single articles/pages | Armand Philippot | 2022-01-06 | 1 | -0/+8 |
| | | |||||
| * | chore: display subjects list under articles | Armand Philippot | 2022-01-03 | 2 | -2/+15 |
| | | |||||
| * | chore: add a button-like component for links | Armand Philippot | 2021-12-29 | 1 | -0/+2 |
| | | |||||
| * | chore: display comments as a tree | Armand Philippot | 2021-12-27 | 1 | -0/+1 |
| | | | | | | | 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 content | Armand Philippot | 2021-12-24 | 2 | -30/+1 |
| | | | | | | Since I replace the other pages, there is no reason to fetch this page content through WP GraphQL. | ||||
| * | chore: replace homepage content with MDX content | Armand Philippot | 2021-12-24 | 2 | -14/+0 |
| | | | | | | I cannot import custom blocks through WP GraphQL, so I prefer to use MDX file. This way I cannot import custom components. | ||||
| * | build: add a typescript declaration file for MDX | Armand Philippot | 2021-12-24 | 1 | -0/+6 |
| | | | | | | I need to inform Typescript than I am exporting a meta constant from MDX files. | ||||
| * | chore: add a table of contents | Armand Philippot | 2021-12-21 | 1 | -0/+7 |
| | | |||||
| * | refactor: rewrite types and services | Armand Philippot | 2021-12-20 | 10 | -194/+224 |
| | | | | | | | | 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: add subject view | Armand Philippot | 2021-12-18 | 1 | -3/+38 |
| | | |||||
| * | chore: create mutation to add a new comment on posts | Armand Philippot | 2021-12-17 | 1 | -0/+22 |
| | | |||||
| * | chore: create mutation to send mail from contact form | Armand Philippot | 2021-12-17 | 1 | -0/+19 |
| | | |||||
| * | chore: add meta to single posts | Armand Philippot | 2021-12-17 | 1 | -0/+10 |
| | | |||||
| * | chore: display comments list on posts | Armand Philippot | 2021-12-17 | 1 | -1/+11 |
| | | |||||
| * | chore: create thematic page view | Armand Philippot | 2021-12-16 | 1 | -0/+47 |
| | | | | | | | | 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 posts | Armand Philippot | 2021-12-16 | 2 | -4/+4 |
| | | |||||
| * | chore: fix typo | Armand Philippot | 2021-12-16 | 2 | -2/+2 |
| | | |||||
| * | chore: create legal notice view | Armand Philippot | 2021-12-15 | 1 | -1/+1 |
| | | |||||
| * | chore: create CV view | Armand Philippot | 2021-12-15 | 1 | -0/+29 |
| | | |||||
| * | chore: create single post view | Armand Philippot | 2021-12-15 | 4 | -5/+88 |
| | | |||||
| * | chore: add pagination (load more) to blog page | Armand Philippot | 2021-12-15 | 1 | -5/+7 |
| | | |||||
| * | chore: retrieve posts list on blog page | Armand Philippot | 2021-12-15 | 5 | -0/+98 |
| | | |||||
| * | chore: add main-nav component | Armand Philippot | 2021-12-13 | 1 | -0/+5 |
| | | | | | | I choose to implement main-nav paths manually instead of fetching them from GraphQL to ensure functional navigation without JS. | ||||
| * | chore: create homepage with graphql data | Armand Philippot | 2021-12-13 | 2 | -1/+20 |
| | | |||||
| * | chore: change app to use a layout | Armand Philippot | 2021-12-13 | 1 | -0/+11 |
| I can now insert header/footer on each pages. | |||||
