Monday | 15 APR 2024
[ previous ]
[ next ]


Date: 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.

2023-06-12 - Almost one full year later I switched everything to BASIC and added some front matter to my blog posts. I have Title, Date, Sequence and Tags now that are on top of my markdown blog posts. This front matter is a snippet in my EVA editor. I still haven't created automatic daily blog post naming but I don't think I will. If I can't come up with a good enough name then I probably don't actually want to write anything down.