Commit Graph

6 Commits

Author SHA1 Message Date
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
Rufus Pollock c766efb85e [site/build,#64][s]: remove rewrites effort because not working and breaking existing markdown pages (404).
Unfortunately no way to use nextjs rewrites/redirects for what we want: https://nextjs.org/docs/api-reference/next.config.js/redirects or https://nextjs.org/docs/api-reference/next.config.js/rewrites

Why? We want xyz.md => xyz. Unfortunately nextjs regex matching is for the whole path ie. :page(some-regex) => /abc has the some-regex match all of path not the extension. Furthermore there is no way to redirect to a part fragment.
2022-03-14 17:08:21 +01:00
sdiehl 46267a08d9 Fix site build, add yarn. 2022-03-13 11:10:39 +00:00
sdiehl fcc48817f0 Try to incoporate rewrites into router. 2022-03-12 10:21:57 +00:00
Rufus Pollock 6c2342967c [site/home][m]: solid hero section for home page with colors, fonts.
* font: inter
* colors: from standard tailwind using life itself yellow as primary
2022-03-07 17:58:42 +01:00
Rufus Pollock cfd151fe5c [site,#53][l]: skeleton website based off nextjs template https://github.com/datopian/nextjs-tailwind-mdx.
No real content yet. Just a skeleton.
2022-03-03 10:53:31 +01:00