This is a no-brainer to get your single-post web page up and running. Just have to have Node and NPM installed, and /bin/sh pointing to Bash shell. Styling is powered by 999.css.
Steps:
- Place the below
package.jsoninto an empty directory and enter this directory in your command line prompt. - Run
npm run scaffold. - Edit
domain,titleandauthorin theconfigsection of yourpackage.json. Thedomainmay be either a Surge subdomain or your own (please refer to the Surge docs). If you're going to host your page yourself, you may leavedomainempty. - Edit your post in the
post.mdfile that appeared in the directory after the scaffolding. The format to write is Markdown. - Whenever you're ready, just run
npm run build, if you're going to host your page yourself, ornpm run deployfor hosting on Surge (enter your Surge login/password if prompted). In both cases, output will be stored indist/directory. - ???
- PROFIT!
Feel free to edit src/index.html according to your particular needs.
P.S. If you need to take down your page when hosting on Surge, just run npm run undeploy.