Commit Graph

9 Commits

Author SHA1 Message Date
Rufus Pollock 5fb3bbbac2 [site/theme][s]: add table of contents support with remark-toc and use on guide page. 2022-08-23 15:20:12 +02:00
Rufus Pollock 09fcb2d112 [site/contentlayer][s]: add missing fields we are using url, twitter, launched, medium. 2022-06-21 11:36:48 +02:00
olayway 034bb1eb3d [components/toc][s]: fixed heading links 2022-06-06 13:08:25 +02:00
olayway 90cbf2be8f [components/toc][f]: highlight active h in toc 2022-06-06 13:03:05 +02:00
olayway dba48484b9 [components/toc][f]: added rhs toc 2022-06-06 12:46:10 +02:00
khalilcodes a9b303d029 [site/config]: add keywords field and move date logic to contentlayer 2022-06-01 17:57:57 +03:00
khalilcodes e4019fba59 frontmatter setup 2022-04-15 13:52:13 +03:00
khalilcodes c9c4c00c2b add remark and rehype plugins 2022-04-07 03:04:49 +03:00
Rufus Pollock 604708f165 [site/infra,#94][l]: switch from next/mdx to contentlayerfor rendering markdown files.
* Move all markdown into a dedicated `content/` directory
* use contentlayer (https://github.com/contentlayerdev/contentlayer) for loading markdown
* add catch all route pages/[...slug].js to generate all markdown routes using contentlayer to find pages

frontmatter now properly supported

NB: some nice side benefits like removing the hack in _app.js to render markdown template vs the general layout template

TODO: page titles need fixing
2022-03-23 14:37:53 +01:00