aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/helpers/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Summary component with PostPreviewArmand Philippot2023-11-111-0/+1
| | | | | | | | | | | * rename component to PostPreview because Summary is an HTML element and it could lead to confusion * replace `title` and `titleLevel` with `heading` and `headingLvl` because `title` is a native attribute * rename `intro` prop to `excerpt` * extract `cover` from `meta` prop * rewrite meta type * extract meta logic into a new component
* feat: replace next-themes with a custom ThemeProviderArmand Philippot2023-11-111-0/+1
| | | | | | | To be honest, next-themes was working fine. However since I use a theme provider for Prism code blocks, some code is duplicated between this app and the library. So I prefer to use a custom Provider without the options I don't need.
* feat(components): add a Time componentArmand Philippot2023-11-111-1/+0
| | | | | | Instead of using helpers functions to format the date each time we need to use a time element, it makes more sense to create a new component dedicated to this task.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-0/+7
Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.