aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/layout/site-header
Commit message (Collapse)AuthorAgeFilesLines
* fix(branding): do not reanimate branding on route changeArmand Philippot2023-12-161-1/+10
| | | | | | | The branding animation should occurs only once. Since we're changing the heading from a h1 to a p and vice-versa, the CSS animation was retriggered. By using a ref to make sure it is the first render, we can prevent this behaviour.
* refactor(pages): rewrite helpers to output schema in json-ld formatArmand Philippot2023-12-141-1/+6
| | | | | | | | | | | | | * make sure url are absolutes * nest breadcrumb schema in webpage schema * trim HTML tags from content/description * use a regular script instead of next/script (with the latter the schema is not updated on route change) * place the script in document head * add keywords, wordCount and readingTime keys in BlogPosting schema * fix breadcrumbs in search page (without query) * add tests (a `MatchInlineSnapshot` will be better but Prettier 3 is not supported yet)
* refactor(components): split Layout component in smaller componentsArmand Philippot2023-11-228-0/+525
The previous component was too long and hardly readable. So I splitted it in different part and added tests.