Next Static Blog
A simple static blog powered by next.js.
This repo could be a good starting place for your simple Next.js powered static site. That said, there are other options out there that are more extensible, well maintained, and battle tested than this repo. Check them out: https://myles.github.io/awesome-static-generators/
- Fork this repo
config/index.jsto your liking.
- Get the best experience with config by adding a plugin to your text editor that will surface flow errors. This will ensure you're providing the expected types for your config values.
- Create a
- Add front matter separated by
---and the body of the post in markdown below:
- While writing, run
yarn devto see your post live reload when saved.
yarn exportto build your new site.
Updating Next Static
Currently Next Static is not packaged an distributed on NPM. In order to receive updates you will need to do something like this:
- Inside the your fork
git remote add upstream firstname.lastname@example.org:infiniteluke/next-static.git
git merge upstream master
- To the extent that you hack Next Static, you will need to resolve merge conflicts.
- I'm open to ideas on how to best package this and make the update process as simple as bumping versions.