When I start writing a new post, I copy/paste some random old post to give me the frontmatter structure. ![]() Here's why this happens: every blog post has a publishedOn date in the frontmatter, and optionally an updatedOn date as well. ![]() So here's a mistake I'm embarrassed to admit I've made more than once: sometimes, my "brand new" posts will have a "last updated" date from several months/years ago. I do use Reach UI for things like modals, though.įor animation, I mainly rely on React Spring, though I've started dabbling with Framer Motion recently.īut the most critical part of my stack is MDX. I don't use any "cosmetic" libraries like Bootstrap (and I don't think you should either). When it comes to the styling, I use styled-components, and write all the styles from scratch. I wound up moving some of my non-Next projects there as well. I initially chose them because they're the company behind Next.js, and I figured it would be well-optimized. I use MongoDB as my database, to store stuff like the # of likes each post has. ![]() I also use Next's API Routes for things that require persistence in the backend. I've opted to build all the blog posts ahead of time, when the site is generated. With Next, you have a few different options when it comes to page rendering: you can choose to do it “on-demand” (server-side rendering) or ahead of time (static site generation).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |