Ben Schlegel
2023-09-29 0b61f6fbfd20556102ce23444ae7eb9348472952
refs
author Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Friday, September 29, 2023 08:26 +0000
committer GitHub <noreply@github.com>
Friday, September 29, 2023 08:26 +0000
commit0b61f6fbfd20556102ce23444ae7eb9348472952
tree b37ff29c6c6bdfe1e3cbf35d638afec4cc894041 tree | zip | gz
parent d4c122646ccd6fc989b4436e16b2dffdc931dee6 view | diff
feat: implement breadcrumb component (#508)

* feat: implement breadcrumbs

* style: fix styling, move breadcrumbs to top

* refactor: move `capitalize to `lang.ts``

* refactor: clean breadcrumb generation

* feat: add options to breadcrumbs

* feat: implement `resolveFrontmatterTitle`

* feat: add `hideOnRoot` option

* feat(consistency): capitalize every crumb

* style: add `flex-wrap` to parent container

* refactor: clean `Breadcrumbs.tsx`

* feat(accessibility): use `nav`, add aria label

* style: improve look in popovers by adding margin

* docs: write docs for breadcrumb component

* refactor: collapse `if` condition for hideOnRoot

* chore: add todo for perf optimization

* docs: update introduction
3 files added
4 files modified
193 ■■■■■ changed files
docs/features/breadcrumbs.md 35 ●●●●● diff | view | raw | blame | history
quartz.layout.ts 7 ●●●● diff | view | raw | blame | history
quartz/components/Breadcrumbs.tsx 118 ●●●●● diff | view | raw | blame | history
quartz/components/index.ts 2 ●●●●● diff | view | raw | blame | history
quartz/components/styles/breadcrumbs.scss 22 ●●●●● diff | view | raw | blame | history
quartz/plugins/transformers/ofm.ts 5 ●●●● diff | view | raw | blame | history
quartz/util/lang.ts 4 ●●●● diff | view | raw | blame | history