public/assets: This is where you add images that can be used on your blog._posts: This is where you'll find the posts that are shown on the blog. This is a completely functional NextJS application, but for this tutorial we'll only concern ourselves with the following directories: To use that as a template, run the following command in your terminal: npx create-next-app -example blog-starter-typescript Īfter that has finished running, open the newly created directory in your code editor of choice. For this tutorial we'll use the blog-starter-typescript template from the official NextJS repository. Let's start with checking out the blog template and finding our way around it. Export static HTML with NextJS and Github Actions.Checking out a Markdown powered NextJS blog template.A nice little bonus: this will be 100% free. In this article I'll describe steps you can follow if you want to host a statically generated blog on Github Pages. If you're reading this, it means all three of those worked out □ But that doesn't mean it was without hurdles. I decided to kill two (or actually, three?) birds with one stone: host my own blog, learn the basics of React, and see what NextJS is all about. I had been blogging on Medium, but I wanted more control. It was a task I'd been putting off for years: Getting my own blog up and running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |