cheatsheets devlog projects search

2022-06-14.md

2022-06-14

2022-06-14

Learning Nextjs. Very similar to svelte. One big thing I like is that there is just a pages folder with a single index.js. Svelte felt much bigger. I also really like the image tag that exists in nextjs which claims to handle optimizations automatically. That definite sounds useful.

After svelte, I don’t know if I’m a fan of using file system based routing but we’ll see.

Nextjs has a really good explanation of static site generation and server side rendering.

It looks I should be able to use my own markdown parser to get what I want to happen. Nextjs seems to just frameworkize what I’m currently doing. My commands basically take a directory of markdown files and creates html pages which is exactly what nextjs is going to do as well except it uses react and claims to be easier to do.

I used ejs to do the rendering. The more I read, the more samey everything gets :) Which is a good thing but I had hoped for something more magical.

I did like the idea of a gray matter section. I currently manually have my own style where the first line is the title and the second line is the date. The next step would be automate the creation of files rather than me manually having to name things. Currently I have a mix of names and dates. Just dates would be fine.